Merge pull request #68330 from lilyball/ffsend-installShellFiles
ffsend: adopt installShellFiles
This commit is contained in:
commit
e2b638df5f
|
@ -1,5 +1,5 @@
|
||||||
{ stdenv, fetchFromGitLab, rustPlatform, cmake, pkgconfig, openssl
|
{ stdenv, fetchFromGitLab, rustPlatform, cmake, pkgconfig, openssl
|
||||||
, darwin
|
, darwin, installShellFiles
|
||||||
|
|
||||||
, x11Support ? stdenv.isLinux || stdenv.hostPlatform.isBSD
|
, x11Support ? stdenv.isLinux || stdenv.hostPlatform.isBSD
|
||||||
, xclip ? null, xsel ? null
|
, xclip ? null, xsel ? null
|
||||||
|
@ -27,7 +27,7 @@ buildRustPackage rec {
|
||||||
|
|
||||||
cargoSha256 = "1x4hxar60lwimldpsi0frdlssgsb72qahn3dmb980sj6cmbq3f0b";
|
cargoSha256 = "1x4hxar60lwimldpsi0frdlssgsb72qahn3dmb980sj6cmbq3f0b";
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake pkgconfig ];
|
nativeBuildInputs = [ cmake pkgconfig installShellFiles ];
|
||||||
buildInputs = [ openssl ]
|
buildInputs = [ openssl ]
|
||||||
++ stdenv.lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ CoreFoundation CoreServices Security AppKit ])
|
++ stdenv.lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ CoreFoundation CoreServices Security AppKit ])
|
||||||
;
|
;
|
||||||
|
@ -41,9 +41,7 @@ buildRustPackage rec {
|
||||||
);
|
);
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
install -Dm644 contrib/completions/_ffsend "$out/share/zsh/site-functions/_ffsend"
|
installShellCompletion contrib/completions/ffsend.{bash,fish} --zsh contrib/completions/_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"
|
|
||||||
'';
|
'';
|
||||||
# There's also .elv and .ps1 completion files but I don't know where to install those
|
# There's also .elv and .ps1 completion files but I don't know where to install those
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue