blob: c7f5924c4dffeaf2f77a41700d58c690ad95e1cd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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 = ".";
};
})
|