tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
bws: install completions
Mario Rodas
2 years ago
6ecf48c9
95974f05
+9
1 changed file
expand all
collapse all
unified
split
pkgs
tools
security
bws
default.nix
+9
pkgs/tools/security/bws/default.nix
···
1
1
{ lib
2
2
, rustPlatform
3
3
, fetchFromGitHub
4
4
+
, installShellFiles
4
5
, pkg-config
5
6
, oniguruma
6
7
, openssl
···
29
30
};
30
31
31
32
nativeBuildInputs = [
33
33
+
installShellFiles
32
34
pkg-config
33
35
] ++ lib.optionals stdenv.isLinux [
34
36
perl
···
50
52
};
51
53
52
54
buildAndTestSubdir = "crates/bws";
55
55
+
56
56
+
postInstall = ''
57
57
+
installShellCompletion --cmd bws \
58
58
+
--bash <($out/bin/bws completions bash) \
59
59
+
--fish <($out/bin/bws completions fish) \
60
60
+
--zsh <($out/bin/bws completions zsh)
61
61
+
'';
53
62
54
63
meta = {
55
64
changelog = "https://github.com/bitwarden/sdk/blob/${src.rev}/CHANGELOG.md";