about summary refs log tree commit diff
path: root/pkgs/applications/networking/instant-messengers/profanity
diff options
context:
space:
mode:
authorAndré-Patrick Bubel <code@andre-bubel.de>2017-10-12 22:11:15 +0200
committerAndré-Patrick Bubel <code@andre-bubel.de>2017-10-19 05:10:21 +0200
commite4cf6635abe7508537a6bc8b8691fb12a36fd207 (patch)
treea6f5088f6d90a2ac61c074da03fb1cbdf7c36305 /pkgs/applications/networking/instant-messengers/profanity
parent7a82f81b84dd5e98a43719e5ee8576d65e2f7cfb (diff)
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.
Diffstat (limited to 'pkgs/applications/networking/instant-messengers/profanity')
-rw-r--r--pkgs/applications/networking/instant-messengers/profanity/default.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/pkgs/applications/networking/instant-messengers/profanity/default.nix b/pkgs/applications/networking/instant-messengers/profanity/default.nix
index 6c57624d28e21..74dc36bc7ac0d 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 = ''