2021-01-19 07:50:56 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, libcap }:
|
2016-07-09 12:49:04 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "smcroute";
|
2022-11-29 20:29:03 +01:00
|
|
|
version = "2.5.6";
|
2016-07-09 12:49:04 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "troglobit";
|
|
|
|
repo = "smcroute";
|
|
|
|
rev = version;
|
2022-11-29 20:29:03 +01:00
|
|
|
sha256 = "sha256-I9kc1F+GZf8Gl0Wx3J45Bf/RyFTyHVhwDz5l+sp/2pc=";
|
2016-07-09 12:49:04 +02:00
|
|
|
};
|
|
|
|
|
2021-01-19 07:50:56 +01:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
2018-04-27 01:09:30 +02:00
|
|
|
buildInputs = [ libcap ];
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--localstatedir=/var"
|
|
|
|
"--with-systemd=\$(out)/lib/systemd/system"
|
|
|
|
];
|
2016-07-09 12:49:04 +02:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2016-07-09 12:49:04 +02:00
|
|
|
description = "Static multicast routing daemon";
|
2020-10-23 15:05:17 +02:00
|
|
|
homepage = "https://troglobit.com/smcroute.html";
|
2016-07-09 12:49:04 +02:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ fpletz ];
|
|
|
|
platforms = with platforms; (linux ++ freebsd ++ netbsd ++ openbsd);
|
|
|
|
};
|
|
|
|
}
|