git.iko.soy/typeable/nixpkgs
on master help sign in
Merge #121794: pidgin: weaken install checks on non-Linux
commit4fac78928cadf2cf4eb0bc576465442463b93479 authorVladimír Čunát <v@cunat.cz> dateThu 6 May 2021, 23:39 (6 years ago) parent7c6ef9cdcbe5b4
1 file changed+5−2
pkgs/applications/networking/instant-messengers/pidgin/default.nix+5−2
pkgs/applications/networking/instant-messengers/pidgin/default.nix+5−2
@@ -76,8 +76,11 @@ let unwrapped = stdenv.mkDerivation rec {
7676
7777 doInstallCheck = stdenv.hostPlatform == stdenv.buildPlatform;
7878 # In particular, this detects missing python imports in some of the tools.
79− postInstallCheck = ''
80− for f in "''${!outputBin}"/bin/{purple-remote,pidgin}; do
79+ postFixup = let
80+ # TODO: python is a script, so it doesn't work as interpreter on darwin
81+ binsToTest = lib.optionalString stdenv.isLinux "purple-remote," + "pidgin,finch";
82+ in lib.optionalString doInstallCheck ''
83+ for f in "''${!outputBin}"/bin/{${binsToTest}}; do
8184 echo "Testing: $f --help"
8285 "$f" --help
8386 done