about summary refs log tree commit diff
path: root/pkgs/applications/networking/instant-messengers/profanity
diff options
context:
space:
mode:
authorArtturin <Artturin@artturin.com>2022-05-10 00:45:02 +0300
committerArtturin <Artturin@artturin.com>2022-05-10 00:49:38 +0300
commitbab661ab2b738f9863794220b1f4c2d0166b4be4 (patch)
treebaac8c0ebeabedfb708dcdfb66d401200e02458f /pkgs/applications/networking/instant-messengers/profanity
parent14a95907514a0114fe4c102663a62a320c49108c (diff)
profanity: remove useless nulls
Diffstat (limited to 'pkgs/applications/networking/instant-messengers/profanity')
-rw-r--r--pkgs/applications/networking/instant-messengers/profanity/default.nix17
1 files changed, 5 insertions, 12 deletions
diff --git a/pkgs/applications/networking/instant-messengers/profanity/default.nix b/pkgs/applications/networking/instant-messengers/profanity/default.nix
index 2034f1761f2e3..0e4487768a810 100644
--- a/pkgs/applications/networking/instant-messengers/profanity/default.nix
+++ b/pkgs/applications/networking/instant-messengers/profanity/default.nix
@@ -18,21 +18,14 @@
 , pkg-config
 , readline
 , sqlite
-, autoAwaySupport ? true,       libXScrnSaver ? null, libX11
+, autoAwaySupport ? true,       libXScrnSaver, libX11
 , notifySupport ? true,         libnotify, gdk-pixbuf
 , omemoSupport ? true,          libsignal-protocol-c, libgcrypt
 , pgpSupport ? true,            gpgme
-, pythonPluginSupport ? true,   python
-, traySupport ? true,           gtk
+, pythonPluginSupport ? true,   python3
+, traySupport ? true,           gtk3
 }:
 
-assert autoAwaySupport     -> libXScrnSaver != null && libX11 != null;
-assert notifySupport       -> libnotify != null && gdk-pixbuf != null;
-assert traySupport         -> gtk != null;
-assert pgpSupport          -> gpgme != null;
-assert pythonPluginSupport -> python != null;
-assert omemoSupport        -> libsignal-protocol-c != null && libgcrypt != null;
-
 stdenv.mkDerivation rec {
   pname = "profanity";
   version = "0.12.0";
@@ -75,8 +68,8 @@ stdenv.mkDerivation rec {
     ++ lib.optionals notifySupport       [ libnotify gdk-pixbuf ]
     ++ lib.optionals omemoSupport        [ libsignal-protocol-c libgcrypt ]
     ++ lib.optionals pgpSupport          [ gpgme ]
-    ++ lib.optionals pythonPluginSupport [ python ]
-    ++ lib.optionals traySupport         [ gtk ];
+    ++ lib.optionals pythonPluginSupport [ python3 ]
+    ++ lib.optionals traySupport         [ gtk3 ];
 
   # Enable feature flags, so that build fail if libs are missing
   configureFlags = [