Files
Ihar HrachyshkaandWolfgang Walther 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

37 lines
918 B
Nix

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