nixpkgs/pkgs/tools/networking/keepalived/default.nix

36 lines
756 B
Nix
Raw Normal View History

2017-02-13 21:36:12 +03:00
{ stdenv, fetchFromGitHub, libnfnetlink, libnl, net_snmp, openssl, pkgconfig }:
2015-06-28 00:33:21 +03:00
stdenv.mkDerivation rec {
2017-02-13 21:36:12 +03:00
name = "keepalived-${version}";
2017-08-15 09:29:03 +03:00
version = "1.3.6";
2017-02-13 21:36:12 +03:00
src = fetchFromGitHub {
owner = "acassen";
repo = "keepalived";
rev = "v${version}";
2017-08-15 09:29:03 +03:00
sha256 = "05088vv510dlflzyg8sh8l8qfscnvxl6n6pw9ycp27zhb6r5cr5y";
2015-06-28 00:33:21 +03:00
};
2017-02-13 21:36:12 +03:00
buildInputs = [
libnfnetlink
libnl
net_snmp
openssl
];
2015-06-28 00:33:21 +03:00
2017-02-13 21:36:12 +03:00
nativeBuildInputs = [ pkgconfig ];
2015-06-28 05:59:44 +03:00
2015-06-28 00:33:21 +03:00
configureFlags = [
"--enable-sha1"
2017-02-13 21:36:12 +03:00
"--enable-snmp"
];
2015-06-28 00:33:21 +03:00
meta = with stdenv.lib; {
homepage = http://keepalived.org;
description = "Routing software written in C";
2015-06-28 00:33:21 +03:00
license = licenses.gpl2;
platforms = platforms.linux;
maintainers = with maintainers; [ wkennington ];
};
}