setup misspell

This commit is contained in:
mediocregopher 2021-10-04 13:50:54 -06:00
parent cb90adf002
commit e14e8f0ef9
2 changed files with 28 additions and 0 deletions

View File

@ -15,6 +15,21 @@
subPackages = [ "cmd/goimports" ]; subPackages = [ "cmd/goimports" ];
}; };
misspell = pkgs.buildGoPackage rec {
pname = "misspell";
version = "0.3.4";
goPackagePath = "github.com/client9/misspell";
src = pkgs.fetchFromGitHub {
owner = "client9";
repo = "misspell";
rev = "v${version}";
sha256 = "1vwf33wsc4la25zk9nylpbp9px3svlmldkm0bha4hp56jws4q9cs";
};
goDeps = ./misspellDeps.nix;
};
# the gocode-gomod which comes with nixpkgs places the binary at # the gocode-gomod which comes with nixpkgs places the binary at
# gocode-gomod, we gotta rename it # gocode-gomod, we gotta rename it
gocode = pkgs.stdenv.mkDerivation { gocode = pkgs.stdenv.mkDerivation {
@ -45,6 +60,7 @@
pkgs.gopls pkgs.gopls
gocode gocode
goimports goimports
misspell
]; ];
}; };

12
nvim/misspellDeps.nix Normal file
View File

@ -0,0 +1,12 @@
# file generated from Gopkg.lock using dep2nix (https://github.com/nixcloud/dep2nix)
[
{
goPackagePath = "github.com/gobwas/glob";
fetch = {
type = "git";
url = "https://github.com/gobwas/glob";
rev = "5ccd90ef52e1e632236f7326478d4faa74f99438";
sha256 = "0jxk1x806zn5x86342s72dq2qy64ksb3zrvrlgir2avjhwb18n6z";
};
}
]