diff options
author | Lily Ballard <lily@sb.org> | 2019-09-08 14:58:15 -0700 |
---|---|---|
committer | Lily Ballard <lily@sb.org> | 2019-09-08 15:00:52 -0700 |
commit | ed620603d40691fd29b1c1ba66a19f65c8174734 (patch) | |
tree | 8505b3e31cccd1182951ad97eaa64d90cff7cc91 /pkgs/tools/misc/ffsend | |
parent | 8977ae2d900d6fe4c750a48994ee8857ebc4ddf0 (diff) |
ffsend: adopt installShellFiles
Diffstat (limited to 'pkgs/tools/misc/ffsend')
-rw-r--r-- | pkgs/tools/misc/ffsend/default.nix | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/pkgs/tools/misc/ffsend/default.nix b/pkgs/tools/misc/ffsend/default.nix index 90092c9b0c0c4..3164200080654 100644 --- a/pkgs/tools/misc/ffsend/default.nix +++ b/pkgs/tools/misc/ffsend/default.nix @@ -1,5 +1,5 @@ { stdenv, fetchFromGitLab, rustPlatform, cmake, pkgconfig, openssl -, darwin +, darwin, installShellFiles , x11Support ? stdenv.isLinux || stdenv.hostPlatform.isBSD , xclip ? null, xsel ? null @@ -27,7 +27,7 @@ buildRustPackage rec { cargoSha256 = "1x4hxar60lwimldpsi0frdlssgsb72qahn3dmb980sj6cmbq3f0b"; - nativeBuildInputs = [ cmake pkgconfig ]; + nativeBuildInputs = [ cmake pkgconfig installShellFiles ]; buildInputs = [ openssl ] ++ stdenv.lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ CoreFoundation CoreServices Security AppKit ]) ; @@ -41,9 +41,7 @@ buildRustPackage rec { ); postInstall = '' - install -Dm644 contrib/completions/_ffsend "$out/share/zsh/site-functions/_ffsend" - install -Dm644 contrib/completions/ffsend.bash "$out/share/bash-completion/completions/ffsend.bash" - install -Dm644 contrib/completions/ffsend.fish "$out/share/fish/vendor_completions.d/ffsend.fish" + installShellCompletion contrib/completions/ffsend.{bash,fish} --zsh contrib/completions/_ffsend ''; # There's also .elv and .ps1 completion files but I don't know where to install those |