diff options
Diffstat (limited to 'pkgs/hexapoda.nix')
| -rw-r--r-- | pkgs/hexapoda.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/hexapoda.nix b/pkgs/hexapoda.nix new file mode 100644 index 0000000..c7f5924 --- /dev/null +++ b/pkgs/hexapoda.nix @@ -0,0 +1,31 @@ +{ lib, fetchFromGitHub, rustPlatform, installShellFiles }: + +rustPlatform.buildRustPackage(finalAttrs: { + pname = "hexapoda"; + version = "1.0.0"; + + src = fetchFromGitHub { + owner = "simonomi"; + repo = "hexapoda"; + tag = "v${finalAttrs.version}"; + hash = "sha256-UL9y7ofI9VRGbmKG2tX2Ax/So1OhemznUFPR9LOA6Os="; + }; + + cargoHash = "sha256-pfzziyjlrMFM65+ZusqXpp+utVHHV0pWE2lCZwHYiBM="; + + nativeBuildInputs = [ installShellFiles ]; + + postInstall = '' + installManPage hexapoda.1 + + installShellCompletion --cmd hexapoda \ + --bash hexapoda.bash\ + --fish hexapoda.fish\ + --zsh _hexapoda\ + ''; + + env = { + HEXAPODA_COMPLETIONS = "."; + HEXAPODA_MANPAGE = "."; + }; +}) |
