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
-
{ lib, stdenv, rustPlatform, fetchFromGitHub, shared-mime-info, libiconv }:
2
3
rustPlatform.buildRustPackage rec {
4
pname = "handlr";
···
13
14
cargoSha256 = "sha256-xDQV8wVlzItz0lzR1nVRPVsg7nSf/khUhevDlGgSO3g=";
15
16
-
nativeBuildInputs = [ shared-mime-info ];
17
buildInputs = lib.optional stdenv.isDarwin libiconv;
18
19
preCheck = ''
20
export HOME=$TEMPDIR
0
0
0
0
0
0
21
'';
22
23
meta = with lib; {
···
1
+
{ lib, stdenv, rustPlatform, fetchFromGitHub, shared-mime-info, libiconv, installShellFiles }:
2
3
rustPlatform.buildRustPackage rec {
4
pname = "handlr";
···
13
14
cargoSha256 = "sha256-xDQV8wVlzItz0lzR1nVRPVsg7nSf/khUhevDlGgSO3g=";
15
16
+
nativeBuildInputs = [ installShellFiles shared-mime-info ];
17
buildInputs = lib.optional stdenv.isDarwin libiconv;
18
19
preCheck = ''
20
export HOME=$TEMPDIR
21
+
'';
22
+
23
+
postInstall = ''
24
+
installShellCompletion \
25
+
--zsh completions/_handlr \
26
+
--fish completions/handlr.fish
27
'';
28
29
meta = with lib; {