nixpkgs/pkgs/servers/smcroute/default.nix

30 lines
789 B
Nix
Raw Normal View History

2018-04-27 00:09:30 +01:00
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, libcap }:
2016-07-09 11:49:04 +01:00
stdenv.mkDerivation rec {
name = "smcroute-${version}";
version = "2.4.2";
2016-07-09 11:49:04 +01:00
src = fetchFromGitHub {
owner = "troglobit";
repo = "smcroute";
rev = version;
sha256 = "197bi3il0c1vldw35ijx3zqyfj738nvfvr7yr4cwrbv40p3ascaq";
2016-07-09 11:49:04 +01:00
};
2018-04-27 00:09:30 +01:00
nativeBuildInputs = [ autoreconfHook pkgconfig ];
buildInputs = [ libcap ];
configureFlags = [
"--localstatedir=/var"
"--with-systemd=\$(out)/lib/systemd/system"
];
2016-07-09 11:49:04 +01:00
meta = with stdenv.lib; {
description = "Static multicast routing daemon";
homepage = http://troglobit.com/smcroute.html;
2016-07-09 11:49:04 +01:00
license = licenses.gpl2Plus;
maintainers = with maintainers; [ fpletz ];
platforms = with platforms; (linux ++ freebsd ++ netbsd ++ openbsd);
};
}