ngadmin: add withReadline, enableEmu, enableSpy flags

This commit is contained in:
Astro 2021-01-20 00:09:36 +01:00
parent 0e674064c2
commit 4b5b5a8cb9

View File

@ -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";