2021-01-19 23:09:36 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, autoreconfHook, readline
|
|
|
|
, withReadline ? true
|
|
|
|
, enableEmu ? true
|
|
|
|
, enableSpy ? true
|
|
|
|
}:
|
2021-01-15 19:55:01 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "ngadmin";
|
2021-01-19 23:08:24 +00:00
|
|
|
version = "unstable-2020-10-05";
|
2021-01-15 19:55:01 +00:00
|
|
|
|
2021-01-19 23:08:24 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Alkorin";
|
|
|
|
repo = "ngadmin";
|
|
|
|
rev = "5bf8650ce6d465b8cb1e570548819f0cefe9a87d";
|
|
|
|
sha256 = "15vixhwqcpbjdxlaznans9w63kwl29mdkds6spvbv2i7l33qnhq4";
|
2021-01-15 19:55:01 +00:00
|
|
|
};
|
|
|
|
|
2021-01-19 23:09:36 +00:00
|
|
|
nativeBuildInputs =
|
|
|
|
[ autoreconfHook ]
|
|
|
|
++ lib.optional withReadline readline;
|
2022-02-10 19:39:02 +00:00
|
|
|
enableParallelBuilding = true;
|
2021-01-19 23:09:36 +00:00
|
|
|
configureFlags = with lib;
|
|
|
|
optional (!withReadline) "--without-readline"
|
|
|
|
++ optional enableEmu "--enable-emu"
|
|
|
|
++ optional enableSpy "--enable-spy";
|
2021-01-15 19:55:01 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Netgear switch (NSDP) administration tool";
|
|
|
|
homepage = "https://www.netgeek.ovh/wiki/projets:ngadmin";
|
|
|
|
license = licenses.gpl2Only;
|
|
|
|
maintainers = [ maintainers.astro ];
|
|
|
|
};
|
|
|
|
}
|