nixpkgs/pkgs/servers/smcroute/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
781 B
Nix
Raw Normal View History

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