From e4cf6635abe7508537a6bc8b8691fb12a36fd207 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9-Patrick=20Bubel?= Date: Thu, 12 Oct 2017 22:11:15 +0200 Subject: [PATCH] profanity: explicit feature flags so build fails when libs are missing When the feature flags during configuration are not set explicitly the build will continue even when needed libs are missing, disabling the feature. To get notified of problems, we set the feature flags explicitly. --- .../networking/instant-messengers/profanity/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/applications/networking/instant-messengers/profanity/default.nix b/pkgs/applications/networking/instant-messengers/profanity/default.nix index 6c57624d28e..74dc36bc7ac 100644 --- a/pkgs/applications/networking/instant-messengers/profanity/default.nix +++ b/pkgs/applications/networking/instant-messengers/profanity/default.nix @@ -38,6 +38,13 @@ stdenv.mkDerivation rec { ++ optionals pgpSupport [ gpgme ] ++ optionals pythonPluginSupport [ python ]; + # Enable feature flags, so that build fail if libs are missing + configureFlags = [ "--enable-c-plugins" "--enable-otr" ] + ++ optionals notifySupport [ "--enable-notifications" ] + ++ optionals traySupport [ "--enable-icons" ] + ++ optionals pgpSupport [ "--enable-pgp" ] + ++ optionals pythonPluginSupport [ "--enable-python-plugins" ]; + meta = { description = "A console based XMPP client"; longDescription = ''