summary refs log tree commit diff
path: root/pkgs/tools/networking/i2pd
diff options
context:
space:
mode:
authorSandro Jäckel <sandro.jaeckel@sap.com>2022-09-29 11:37:29 +0200
committerSandro Jäckel <sandro.jaeckel@sap.com>2022-09-29 11:37:29 +0200
commit64abd830b4b7e807ab9aced7d6e7669e539e43f3 (patch)
tree69dae67454d950a13df01b56aa7f36c6704ee6ee /pkgs/tools/networking/i2pd
parent8440538f883be7606e1c16cf5aa915d9272fde1c (diff)
i2pd: remove unecessary ? null from inputs
Diffstat (limited to 'pkgs/tools/networking/i2pd')
-rw-r--r--pkgs/tools/networking/i2pd/default.nix8
1 files changed, 3 insertions, 5 deletions
diff --git a/pkgs/tools/networking/i2pd/default.nix b/pkgs/tools/networking/i2pd/default.nix
index f99d10deed844..941d60eb92702 100644
--- a/pkgs/tools/networking/i2pd/default.nix
+++ b/pkgs/tools/networking/i2pd/default.nix
@@ -1,13 +1,11 @@
 { lib, stdenv, fetchFromGitHub
 , installShellFiles
 , boost, zlib, openssl
-, upnpSupport ? true, miniupnpc ? null
+, upnpSupport ? true, miniupnpc
 , aesniSupport ? stdenv.hostPlatform.aesSupport
 , avxSupport   ? stdenv.hostPlatform.avxSupport
 }:
 
-assert upnpSupport -> miniupnpc != null;
-
 stdenv.mkDerivation rec {
   pname = "i2pd";
   version = "2.43.0";
@@ -19,8 +17,8 @@ stdenv.mkDerivation rec {
     sha256 = "sha256-JIO1Zm7me/SX0W7sVHOesERnqvC7jy0Fu1vfKFePFd0=";
   };
 
-  buildInputs = with lib; [ boost zlib openssl ]
-    ++ optional upnpSupport miniupnpc;
+  buildInputs = [ boost zlib openssl ]
+    ++ lib.optional upnpSupport miniupnpc;
 
   nativeBuildInputs = [
     installShellFiles