nixpkgs/pkgs/servers/smcroute/default.nix

30 lines
780 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, libcap }:
2016-07-09 06:49:04 -04:00
stdenv.mkDerivation rec {
pname = "smcroute";
2019-03-01 23:07:17 -05:00
version = "2.4.4";
2016-07-09 06:49:04 -04:00
src = fetchFromGitHub {
owner = "troglobit";
repo = "smcroute";
rev = version;
2019-03-01 23:07:17 -05:00
sha256 = "0mjq9cx093b0825rqbcq3z0lzy81pd8h0fz6rda6npg3604rxj81";
2016-07-09 06:49:04 -04:00
};
2018-04-26 19:09:30 -04:00
nativeBuildInputs = [ autoreconfHook pkgconfig ];
buildInputs = [ libcap ];
configureFlags = [
"--localstatedir=/var"
"--with-systemd=\$(out)/lib/systemd/system"
];
2016-07-09 06:49:04 -04:00
meta = with lib; {
2016-07-09 06:49:04 -04:00
description = "Static multicast routing daemon";
homepage = "https://troglobit.com/smcroute.html";
2016-07-09 06:49:04 -04:00
license = licenses.gpl2Plus;
maintainers = with maintainers; [ fpletz ];
platforms = with platforms; (linux ++ freebsd ++ netbsd ++ openbsd);
};
}