aboutsummaryrefslogtreecommitdiff
path: root/nix
diff options
context:
space:
mode:
authorCody Hiar <cody@hiar.ca>2022-06-08 21:12:27 -0600
committerCody Hiar <cody@hiar.ca>2022-06-08 21:12:27 -0600
commit1dfb0beddb27cd5420214f875f484621ac86bdb6 (patch)
treeba770882dfa58dd60aabbf9ec975ecb22c4b90b7 /nix
parentbd3fe5b914b521279fcfb08aa8c5e58037cbe4f8 (diff)
Cleaning up
Diffstat (limited to 'nix')
-rw-r--r--nix/flake8-isort.nix1
-rw-r--r--nix/mypython.nix19
-rw-r--r--nix/vale.nix5
-rw-r--r--nix/vim-angry-reviewer.nix12
4 files changed, 23 insertions, 14 deletions
diff --git a/nix/flake8-isort.nix b/nix/flake8-isort.nix
index 385e4f7..ce27161 100644
--- a/nix/flake8-isort.nix
+++ b/nix/flake8-isort.nix
@@ -1,5 +1,4 @@
{ buildPythonPackage, fetchPypi, python3Packages }:
-
buildPythonPackage rec {
pname = "flake8-isort";
version = "4.1.1";
diff --git a/nix/mypython.nix b/nix/mypython.nix
index aa262d4..9906fa7 100644
--- a/nix/mypython.nix
+++ b/nix/mypython.nix
@@ -1,13 +1,12 @@
{ python3, flake8-isort }:
-
let
- my-python-packages = python-packages: with python-packages; [
- jedi-language-server
- flake8
- flake8-isort
- isort
- black
- ];
+ my-python-packages = python-packages:
+ with python-packages; [
+ jedi-language-server
+ flake8
+ flake8-isort
+ isort
+ black
+ ];
mypython = python3.withPackages my-python-packages;
-in
-mypython
+in mypython
diff --git a/nix/vale.nix b/nix/vale.nix
index 396f0b7..c1fd15d 100644
--- a/nix/vale.nix
+++ b/nix/vale.nix
@@ -1,5 +1,4 @@
{ lib, buildGoModule, fetchFromGitHub }:
-
buildGoModule rec {
pname = "vale";
version = "2.17.0";
@@ -13,8 +12,8 @@ buildGoModule rec {
};
vendorSha256 = "sha256-zdgLWEArmtHTDM844LoSJwKp0UGoAR8bHnFOSlrrjdg=";
postInstall = ''
- mkdir -p $data/share/vale
- cp -r styles $data/share/vale
+ mkdir -p $data/share/vale
+ cp -r styles $data/share/vale
'';
ldflags = [ "-s" "-w" "-X main.version=${version}" ];
}
diff --git a/nix/vim-angry-reviewer.nix b/nix/vim-angry-reviewer.nix
new file mode 100644
index 0000000..7e09551
--- /dev/null
+++ b/nix/vim-angry-reviewer.nix
@@ -0,0 +1,12 @@
+{ vimUtils, fetchFromGitHub }:
+
+vimUtils.buildVimPluginFrom2Nix {
+ pname = "vim-angry-reviewer";
+ version = "HEAD";
+ src = fetchFromGitHub {
+ owner = "anufrievroman";
+ repo = "vim-angry-reviewer";
+ rev = "9bf1179";
+ sha256 = "sha256-PUaIx6rEaLz0HUxkglsVHw0Kx/ovI2f4Yhknuysr5Gs=";
+ };
+}