Merge pull request #236749 from kirillrdy/optional-patch

browserpass: autopatchelf only on linux + testVersion

authored by Naïm Favier and committed by GitHub 7b403f04 f0cbc8c4

+8 -1
+8 -1
pkgs/tools/security/browserpass/default.nix
··· 5 , gnupg 6 , makeWrapper 7 , autoPatchelfHook 8 }: 9 10 buildGoModule rec { ··· 18 sha256 = "sha256-UZzOPRRiCUIG7uSSp9AEPMDN/+4cgyK47RhrI8oUx8U="; 19 }; 20 21 - nativeBuildInputs = [ makeWrapper autoPatchelfHook ]; 22 23 vendorHash = "sha256-CjuH4ANP2bJDeA+o+1j+obbtk5/NVLet/OFS3Rms4r0="; 24 ··· 55 mkdir -p $out/lib/mozilla/native-messaging-hosts 56 ln -s $out/lib/browserpass/hosts/firefox/*.json $out/lib/mozilla/native-messaging-hosts 57 ''; 58 59 meta = with lib; { 60 description = "Browserpass native client app";
··· 5 , gnupg 6 , makeWrapper 7 , autoPatchelfHook 8 + , testers 9 + , browserpass 10 }: 11 12 buildGoModule rec { ··· 20 sha256 = "sha256-UZzOPRRiCUIG7uSSp9AEPMDN/+4cgyK47RhrI8oUx8U="; 21 }; 22 23 + nativeBuildInputs = [ makeWrapper ] ++ lib.optionals stdenv.isLinux [ autoPatchelfHook ]; 24 25 vendorHash = "sha256-CjuH4ANP2bJDeA+o+1j+obbtk5/NVLet/OFS3Rms4r0="; 26 ··· 57 mkdir -p $out/lib/mozilla/native-messaging-hosts 58 ln -s $out/lib/browserpass/hosts/firefox/*.json $out/lib/mozilla/native-messaging-hosts 59 ''; 60 + 61 + passthru.tests.version = testers.testVersion { 62 + package = browserpass; 63 + command = "browserpass --version"; 64 + }; 65 66 meta = with lib; { 67 description = "Browserpass native client app";