From 1dfb0beddb27cd5420214f875f484621ac86bdb6 Mon Sep 17 00:00:00 2001 From: Cody Hiar Date: Wed, 8 Jun 2022 21:12:27 -0600 Subject: Cleaning up --- nix/flake8-isort.nix | 1 - nix/mypython.nix | 19 +++++++++---------- nix/vale.nix | 5 ++--- nix/vim-angry-reviewer.nix | 12 ++++++++++++ 4 files changed, 23 insertions(+), 14 deletions(-) create mode 100644 nix/vim-angry-reviewer.nix (limited to 'nix') 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="; + }; +} -- cgit v1.2.3