about summary refs log tree commit diff
path: root/pkgs/tools/misc/ffsend/default.nix
diff options
context:
space:
mode:
authorJan Tojnar <jtojnar@gmail.com>2019-09-10 07:06:45 +0200
committerJan Tojnar <jtojnar@gmail.com>2019-09-10 07:06:45 +0200
commit1716d62f633cd091fce0d61517bb79504c300d36 (patch)
tree5abe8333c83e247f364cf835efc7fc669d36c311 /pkgs/tools/misc/ffsend/default.nix
parentdc051dfdef1ec4c9bdd90b228764b6c24372597e (diff)
parent8752ff225446422b902d9f88d6f75f9928d4eb34 (diff)
downloadnixlib-1716d62f633cd091fce0d61517bb79504c300d36.tar
nixlib-1716d62f633cd091fce0d61517bb79504c300d36.tar.gz
nixlib-1716d62f633cd091fce0d61517bb79504c300d36.tar.bz2
nixlib-1716d62f633cd091fce0d61517bb79504c300d36.tar.lz
nixlib-1716d62f633cd091fce0d61517bb79504c300d36.tar.xz
nixlib-1716d62f633cd091fce0d61517bb79504c300d36.tar.zst
nixlib-1716d62f633cd091fce0d61517bb79504c300d36.zip
Merge branch 'staging-next' into staging
Diffstat (limited to 'pkgs/tools/misc/ffsend/default.nix')
-rw-r--r--pkgs/tools/misc/ffsend/default.nix8
1 files changed, 3 insertions, 5 deletions
diff --git a/pkgs/tools/misc/ffsend/default.nix b/pkgs/tools/misc/ffsend/default.nix
index 90092c9b0c0c..316420008065 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