Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 stdenv, 3 lib, 4 fetchFromGitHub, 5 autoreconfHook, 6 readline, 7 withReadline ? true, 8 enableEmu ? true, 9 enableSpy ? true, 10}: 11 12stdenv.mkDerivation { 13 pname = "ngadmin"; 14 version = "unstable-2020-10-05"; 15 16 src = fetchFromGitHub { 17 owner = "Alkorin"; 18 repo = "ngadmin"; 19 rev = "5bf8650ce6d465b8cb1e570548819f0cefe9a87d"; 20 sha256 = "15vixhwqcpbjdxlaznans9w63kwl29mdkds6spvbv2i7l33qnhq4"; 21 }; 22 23 nativeBuildInputs = [ autoreconfHook ] ++ lib.optional withReadline readline; 24 enableParallelBuilding = true; 25 configureFlags = 26 lib.optional (!withReadline) "--without-readline" 27 ++ lib.optional enableEmu "--enable-emu" 28 ++ lib.optional enableSpy "--enable-spy"; 29 30 meta = with lib; { 31 description = "Netgear switch (NSDP) administration tool"; 32 homepage = "https://www.netgeek.ovh/wiki/projets:ngadmin"; 33 license = licenses.gpl2Only; 34 maintainers = [ maintainers.astro ]; 35 }; 36}