pidgin: weaken install checks on non-Linux

That should work around the recent darwin regression, e.g.:
https://hydra.nixos.org/build/142033479
This commit is contained in:
Vladimír Čunát 2021-05-05 14:10:27 +02:00
parent ff5fdec093
commit dcbe5b408a
No known key found for this signature in database
GPG Key ID: E747DF1F9575A3AA

View File

@ -76,8 +76,11 @@ let unwrapped = stdenv.mkDerivation rec {
doInstallCheck = stdenv.hostPlatform == stdenv.buildPlatform;
# In particular, this detects missing python imports in some of the tools.
postInstallCheck = ''
for f in "''${!outputBin}"/bin/{purple-remote,pidgin}; do
postFixup = let
# TODO: python is a script, so it doesn't work as interpreter on darwin
binsToTest = lib.optionalString stdenv.isLinux "purple-remote," + "pidgin,finch";
in lib.optionalString doInstallCheck ''
for f in "''${!outputBin}"/bin/{${binsToTest}}; do
echo "Testing: $f --help"
"$f" --help
done