From dcbe5b408a074734038ce4cc412fd449e2b92a8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Wed, 5 May 2021 14:10:27 +0200 Subject: [PATCH] pidgin: weaken install checks on non-Linux That should work around the recent darwin regression, e.g.: https://hydra.nixos.org/build/142033479 --- .../networking/instant-messengers/pidgin/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/networking/instant-messengers/pidgin/default.nix b/pkgs/applications/networking/instant-messengers/pidgin/default.nix index edbc28f793b044..dc5a8739760985 100644 --- a/pkgs/applications/networking/instant-messengers/pidgin/default.nix +++ b/pkgs/applications/networking/instant-messengers/pidgin/default.nix @@ -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