pidgin: add checks (see parent commit, too)

This commit is contained in:
Vladimír Čunát 2021-03-28 17:29:49 +02:00
parent b4946f56ae
commit f3c739f479
No known key found for this signature in database
GPG Key ID: E747DF1F9575A3AA

View File

@ -74,6 +74,15 @@ let unwrapped = stdenv.mkDerivation rec {
--prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0"
'';
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
echo "Testing: $f --help"
"$f" --help
done
'';
meta = with lib; {
description = "Multi-protocol instant messaging client";
homepage = "http://pidgin.im";