2017-02-13 18:36:12 +00:00
|
|
|
{ stdenv, fetchFromGitHub, libnfnetlink, libnl, net_snmp, openssl, pkgconfig }:
|
2015-06-27 22:33:21 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-02-13 18:36:12 +00:00
|
|
|
name = "keepalived-${version}";
|
2017-03-23 23:27:59 +00:00
|
|
|
version = "1.3.5";
|
2017-02-13 18:36:12 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "acassen";
|
|
|
|
repo = "keepalived";
|
|
|
|
rev = "v${version}";
|
2017-03-23 23:27:59 +00:00
|
|
|
sha256 = "0lbzbw5giddr4rrhppdpsswh88x86ywxrl01vm8z5am7acixn1zr";
|
2015-06-27 22:33:21 +01:00
|
|
|
};
|
|
|
|
|
2017-02-13 18:36:12 +00:00
|
|
|
buildInputs = [
|
|
|
|
libnfnetlink
|
|
|
|
libnl
|
|
|
|
net_snmp
|
|
|
|
openssl
|
|
|
|
];
|
2015-06-27 22:33:21 +01:00
|
|
|
|
2017-02-13 18:36:12 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2015-06-28 03:59:44 +01:00
|
|
|
|
2015-06-27 22:33:21 +01:00
|
|
|
configureFlags = [
|
|
|
|
"--enable-sha1"
|
2017-02-13 18:36:12 +00:00
|
|
|
"--enable-snmp"
|
|
|
|
];
|
2015-06-27 22:33:21 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://keepalived.org;
|
2016-06-20 11:53:46 +01:00
|
|
|
description = "Routing software written in C";
|
2015-06-27 22:33:21 +01:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ wkennington ];
|
|
|
|
};
|
|
|
|
}
|