ngadmin: add withReadline, enableEmu, enableSpy flags
This commit is contained in:
parent
0e674064c2
commit
4b5b5a8cb9
@ -1,4 +1,8 @@
|
|||||||
{ stdenv, lib, fetchFromGitHub, autoreconfHook, readline }:
|
{ stdenv, lib, fetchFromGitHub, autoreconfHook, readline
|
||||||
|
, withReadline ? true
|
||||||
|
, enableEmu ? true
|
||||||
|
, enableSpy ? true
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
pname = "ngadmin";
|
pname = "ngadmin";
|
||||||
@ -11,8 +15,14 @@ stdenv.mkDerivation {
|
|||||||
sha256 = "15vixhwqcpbjdxlaznans9w63kwl29mdkds6spvbv2i7l33qnhq4";
|
sha256 = "15vixhwqcpbjdxlaznans9w63kwl29mdkds6spvbv2i7l33qnhq4";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ autoreconfHook readline ];
|
nativeBuildInputs =
|
||||||
|
[ autoreconfHook ]
|
||||||
|
++ lib.optional withReadline readline;
|
||||||
enableParallelBuild = true;
|
enableParallelBuild = true;
|
||||||
|
configureFlags = with lib;
|
||||||
|
optional (!withReadline) "--without-readline"
|
||||||
|
++ optional enableEmu "--enable-emu"
|
||||||
|
++ optional enableSpy "--enable-spy";
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Netgear switch (NSDP) administration tool";
|
description = "Netgear switch (NSDP) administration tool";
|
||||||
|
Loading…
Reference in New Issue
Block a user