Provide NixOS module option to enable the paperless exporter. (#242084)
[NixPkgs.git] / pkgs / by-name / nd / ndisc6 / package.nix
blobf89a89164b8aa44a0128112169a1b499c9dd1aa1
2   lib,
3   stdenv,
4   fetchurl,
5   perl,
6 }:
8 stdenv.mkDerivation rec {
9   pname = "ndisc6";
10   version = "1.0.4";
12   src = fetchurl {
13     url = "https://www.remlab.net/files/ndisc6/archive/ndisc6-${version}.tar.bz2";
14     sha256 = "07swyar1hl83zxmd7fqwb2q0c0slvrswkcfp3nz5lknrk15dmcdb";
15   };
17   buildInputs = [ perl ];
19   configureFlags = [
20     "--sysconfdir=/etc"
21     "--localstatedir=/var"
22     "--disable-suid-install"
23   ];
25   installFlags = [
26     "sysconfdir=\${out}/etc"
27     "localstatedir=$(TMPDIR)"
28   ];
30   meta = with lib; {
31     homepage = "https://www.remlab.net/ndisc6/";
32     description = "Small collection of useful tools for IPv6 networking";
33     maintainers = [ ];
34     platforms = platforms.linux;
35     license = licenses.gpl2Only;
36   };