i2pd: remove unecessary ? null from inputs
This commit is contained in:
parent
8440538f88
commit
64abd830b4
@ -1,13 +1,11 @@
|
|||||||
{ lib, stdenv, fetchFromGitHub
|
{ lib, stdenv, fetchFromGitHub
|
||||||
, installShellFiles
|
, installShellFiles
|
||||||
, boost, zlib, openssl
|
, boost, zlib, openssl
|
||||||
, upnpSupport ? true, miniupnpc ? null
|
, upnpSupport ? true, miniupnpc
|
||||||
, aesniSupport ? stdenv.hostPlatform.aesSupport
|
, aesniSupport ? stdenv.hostPlatform.aesSupport
|
||||||
, avxSupport ? stdenv.hostPlatform.avxSupport
|
, avxSupport ? stdenv.hostPlatform.avxSupport
|
||||||
}:
|
}:
|
||||||
|
|
||||||
assert upnpSupport -> miniupnpc != null;
|
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "i2pd";
|
pname = "i2pd";
|
||||||
version = "2.43.0";
|
version = "2.43.0";
|
||||||
@ -19,8 +17,8 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "sha256-JIO1Zm7me/SX0W7sVHOesERnqvC7jy0Fu1vfKFePFd0=";
|
sha256 = "sha256-JIO1Zm7me/SX0W7sVHOesERnqvC7jy0Fu1vfKFePFd0=";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = with lib; [ boost zlib openssl ]
|
buildInputs = [ boost zlib openssl ]
|
||||||
++ optional upnpSupport miniupnpc;
|
++ lib.optional upnpSupport miniupnpc;
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
installShellFiles
|
installShellFiles
|
||||||
|
Loading…
Reference in New Issue
Block a user