Merge pull request #166339 from cole-h/1password

_1password: fixup packaging
This commit is contained in:
maxine [they] 2022-03-30 17:01:25 +02:00 committed by GitHub
commit 16e547b2d4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -42,12 +42,17 @@ stdenv.mkDerivation {
'';
installPhase = ''
runHook preInstall
install -D ${mainProgram} $out/bin/${mainProgram}
runHook postInstall
'';
postInstall = "installShellCompletion --cmd ${mainProgram}" + lib.concatMapStrings
(s: " --${s} <($out/bin/${mainProgram} completion ${s})") [ "bash" "fish" "zsh" ];
postInstall = ''
installShellCompletion --cmd ${mainProgram} \
--bash <($out/bin/${mainProgram} completion bash) \
--fish <($out/bin/${mainProgram} completion fish) \
--zsh <($out/bin/${mainProgram} completion zsh)
'';
dontStrip = stdenv.isDarwin;