2021-01-19 06:50:56 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, libcap }:
|
2016-07-09 11:49:04 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "smcroute";
|
2021-09-14 03:32:43 +01:00
|
|
|
version = "2.5.2";
|
2016-07-09 11:49:04 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "troglobit";
|
|
|
|
repo = "smcroute";
|
|
|
|
rev = version;
|
2021-09-14 03:32:43 +01:00
|
|
|
sha256 = "sha256-yycTH6p0Ep8bDRlq/086j+sznxCpqwDrHaN99AKShz8=";
|
2016-07-09 11:49:04 +01:00
|
|
|
};
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
2018-04-27 00:09:30 +01:00
|
|
|
buildInputs = [ libcap ];
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--localstatedir=/var"
|
|
|
|
"--with-systemd=\$(out)/lib/systemd/system"
|
|
|
|
];
|
2016-07-09 11:49:04 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2016-07-09 11:49:04 +01:00
|
|
|
description = "Static multicast routing daemon";
|
2020-10-23 14:05:17 +01:00
|
|
|
homepage = "https://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);
|
|
|
|
};
|
|
|
|
}
|