From e14e8f0ef9096cee48319330be63303b2413e338 Mon Sep 17 00:00:00 2001 From: mediocregopher Date: Mon, 4 Oct 2021 13:50:54 -0600 Subject: setup misspell --- nvim/default.nix | 16 ++++++++++++++++ nvim/misspellDeps.nix | 12 ++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 nvim/misspellDeps.nix diff --git a/nvim/default.nix b/nvim/default.nix index d6d4a94..83dd87c 100644 --- a/nvim/default.nix +++ b/nvim/default.nix @@ -15,6 +15,21 @@ 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 # gocode-gomod, we gotta rename it gocode = pkgs.stdenv.mkDerivation { @@ -45,6 +60,7 @@ pkgs.gopls gocode goimports + misspell ]; }; diff --git a/nvim/misspellDeps.nix b/nvim/misspellDeps.nix new file mode 100644 index 0000000..5b7275c --- /dev/null +++ b/nvim/misspellDeps.nix @@ -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"; + }; + } +] \ No newline at end of file -- cgit v1.2.3