summary refs log tree commit diff
path: root/pkgs/applications/networking/ngadmin/default.nix
blob: 8392e05834542ab23ccc3d837408858cfabb1369 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{ 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;
  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";
    homepage = "https://www.netgeek.ovh/wiki/projets:ngadmin";
    license = licenses.gpl2Only;
    maintainers = [ maintainers.astro ];
  };
}