diff options
author | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2020-09-10 21:44:27 +0200 |
---|---|---|
committer | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2020-09-15 21:27:09 +0200 |
commit | ca682af5eae0fddefb72981fd75480fb5525c73a (patch) | |
tree | d7f3af4ed9cfb9270545fa3be2b640f877f3f9ed /pkgs/tools/misc | |
parent | 140b8718fb7030737ab0c008cd2c8abf4c87dea8 (diff) |
cod: init at unstable-2020-09-10
Diffstat (limited to 'pkgs/tools/misc')
-rw-r--r-- | pkgs/tools/misc/cod/default.nix | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/tools/misc/cod/default.nix b/pkgs/tools/misc/cod/default.nix new file mode 100644 index 000000000000..945f4c61f1d2 --- /dev/null +++ b/pkgs/tools/misc/cod/default.nix @@ -0,0 +1,28 @@ +{ lib, fetchFromGitHub, buildGoModule }: + +buildGoModule rec { + pname = "cod"; + version = "unstable-2020-09-10"; + + goPackagePath = "cod"; + + src = fetchFromGitHub { + owner = "dim-an"; + repo = pname; + rev = "ae68da08339471dd278d6df79abbfd6fe89a10fe"; + sha256 = "1l3gn9v8dcy72f5xq9hwbkvkis0vp4dp8qyinsrii3acmhksg9v6"; + }; + + vendorSha256 = "1arllkiz1hk12hq5b2zpg3f8i9lxl66mil5sdv8gnhflmb37vbv3"; + + buildFlagsArray = [ "-ldflags=-X main.GitSha=${src.rev}" ]; + + doCheck = false; + + meta = with lib; { + description = "Tool for generating Bash/Zsh autocompletions based on `--help` output"; + homepage = src.meta.homepage; + license = licenses.asl20; + maintainers = with maintainers; [ SuperSandro2000 ]; + }; +} |