ngadmin: add withReadline, enableEmu, enableSpy flags

Astro 4b5b5a8c 0e674064

+12 -2
+12 -2
pkgs/applications/networking/ngadmin/default.nix
··· 1 - { stdenv, lib, fetchFromGitHub, autoreconfHook, readline }: 2 3 stdenv.mkDerivation { 4 pname = "ngadmin"; ··· 11 sha256 = "15vixhwqcpbjdxlaznans9w63kwl29mdkds6spvbv2i7l33qnhq4"; 12 }; 13 14 - nativeBuildInputs = [ autoreconfHook readline ]; 15 enableParallelBuild = true; 16 17 meta = with lib; { 18 description = "Netgear switch (NSDP) administration tool";
··· 1 + { stdenv, lib, fetchFromGitHub, autoreconfHook, readline 2 + , withReadline ? true 3 + , enableEmu ? true 4 + , enableSpy ? true 5 + }: 6 7 stdenv.mkDerivation { 8 pname = "ngadmin"; ··· 15 sha256 = "15vixhwqcpbjdxlaznans9w63kwl29mdkds6spvbv2i7l33qnhq4"; 16 }; 17 18 + nativeBuildInputs = 19 + [ autoreconfHook ] 20 + ++ lib.optional withReadline readline; 21 enableParallelBuild = true; 22 + configureFlags = with lib; 23 + optional (!withReadline) "--without-readline" 24 + ++ optional enableEmu "--enable-emu" 25 + ++ optional enableSpy "--enable-spy"; 26 27 meta = with lib; { 28 description = "Netgear switch (NSDP) administration tool";