2017-02-13 19:36:12 +01:00
|
|
|
{ stdenv, fetchFromGitHub, libnfnetlink, libnl, net_snmp, openssl, pkgconfig }:
|
2015-06-27 23:33:21 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-02-13 19:36:12 +01:00
|
|
|
name = "keepalived-${version}";
|
2018-02-27 18:57:13 +01:00
|
|
|
version = "1.4.2";
|
2017-02-13 19:36:12 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "acassen";
|
|
|
|
repo = "keepalived";
|
|
|
|
rev = "v${version}";
|
2018-02-27 18:57:13 +01:00
|
|
|
sha256 = "154yxs6kwpi9yc4pa45ba3z3bfwzgmmmja5nk3d9mxq6w6s1swcy";
|
2015-06-27 23:33:21 +02:00
|
|
|
};
|
|
|
|
|
2017-02-13 19:36:12 +01:00
|
|
|
buildInputs = [
|
|
|
|
libnfnetlink
|
|
|
|
libnl
|
|
|
|
net_snmp
|
|
|
|
openssl
|
|
|
|
];
|
2015-06-27 23:33:21 +02:00
|
|
|
|
2017-02-13 19:36:12 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2015-06-28 04:59:44 +02:00
|
|
|
|
2015-06-27 23:33:21 +02:00
|
|
|
configureFlags = [
|
|
|
|
"--enable-sha1"
|
2017-02-13 19:36:12 +01:00
|
|
|
"--enable-snmp"
|
|
|
|
];
|
2015-06-27 23:33:21 +02:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2019-04-15 01:25:45 +02:00
|
|
|
homepage = https://keepalived.org;
|
2016-06-20 12:53:46 +02:00
|
|
|
description = "Routing software written in C";
|
2015-06-27 23:33:21 +02:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|