mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-14 15:36:47 +03:00
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 {
|
||||
pname = "ngadmin";
|
||||
@ -11,8 +15,14 @@ stdenv.mkDerivation {
|
||||
sha256 = "15vixhwqcpbjdxlaznans9w63kwl29mdkds6spvbv2i7l33qnhq4";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ autoreconfHook readline ];
|
||||
nativeBuildInputs =
|
||||
[ autoreconfHook ]
|
||||
++ lib.optional withReadline readline;
|
||||
enableParallelBuild = true;
|
||||
configureFlags = with lib;
|
||||
optional (!withReadline) "--without-readline"
|
||||
++ optional enableEmu "--enable-emu"
|
||||
++ optional enableSpy "--enable-spy";
|
||||
|
||||
meta = with lib; {
|
||||
description = "Netgear switch (NSDP) administration tool";
|
||||
|
Loading…
Reference in New Issue
Block a user