diff options
Diffstat (limited to 'nixpkgs/pkgs/servers/smcroute/default.nix')
-rw-r--r-- | nixpkgs/pkgs/servers/smcroute/default.nix | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/servers/smcroute/default.nix b/nixpkgs/pkgs/servers/smcroute/default.nix new file mode 100644 index 000000000000..2bebb4ecfc5d --- /dev/null +++ b/nixpkgs/pkgs/servers/smcroute/default.nix @@ -0,0 +1,29 @@ +{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, libcap }: + +stdenv.mkDerivation rec { + pname = "smcroute"; + version = "2.5.6"; + + src = fetchFromGitHub { + owner = "troglobit"; + repo = "smcroute"; + rev = version; + sha256 = "sha256-I9kc1F+GZf8Gl0Wx3J45Bf/RyFTyHVhwDz5l+sp/2pc="; + }; + + nativeBuildInputs = [ autoreconfHook pkg-config ]; + buildInputs = [ libcap ]; + + configureFlags = [ + "--localstatedir=/var" + "--with-systemd=\$(out)/lib/systemd/system" + ]; + + meta = with lib; { + description = "Static multicast routing daemon"; + homepage = "https://troglobit.com/smcroute.html"; + license = licenses.gpl2Plus; + maintainers = with maintainers; [ fpletz ]; + platforms = with platforms; (linux ++ freebsd ++ netbsd ++ openbsd); + }; +} |