tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
handlr: install shell completions for zsh and fish
Spencer Whitt
4 years ago
17e90ebd
2e88b6f9
+8
-2
1 changed file
expand all
collapse all
unified
split
pkgs
tools
misc
handlr
default.nix
+8
-2
pkgs/tools/misc/handlr/default.nix
···
1
1
-
{ lib, stdenv, rustPlatform, fetchFromGitHub, shared-mime-info, libiconv }:
1
1
+
{ lib, stdenv, rustPlatform, fetchFromGitHub, shared-mime-info, libiconv, installShellFiles }:
2
2
3
3
rustPlatform.buildRustPackage rec {
4
4
pname = "handlr";
···
13
13
14
14
cargoSha256 = "sha256-xDQV8wVlzItz0lzR1nVRPVsg7nSf/khUhevDlGgSO3g=";
15
15
16
16
-
nativeBuildInputs = [ shared-mime-info ];
16
16
+
nativeBuildInputs = [ installShellFiles shared-mime-info ];
17
17
buildInputs = lib.optional stdenv.isDarwin libiconv;
18
18
19
19
preCheck = ''
20
20
export HOME=$TEMPDIR
21
21
+
'';
22
22
+
23
23
+
postInstall = ''
24
24
+
installShellCompletion \
25
25
+
--zsh completions/_handlr \
26
26
+
--fish completions/handlr.fish
21
27
'';
22
28
23
29
meta = with lib; {