2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv, fetchFromGitHub, nixosTests
|
|
|
|
, libnfnetlink, libnl, net-snmp, openssl
|
|
|
|
, pkgconfig, autoreconfHook }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "keepalived";
|
2020-09-25 04:45:31 +00:00
|
|
|
version = "2.1.3";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "acassen";
|
|
|
|
repo = "keepalived";
|
|
|
|
rev = "v${version}";
|
2020-09-25 04:45:31 +00:00
|
|
|
sha256 = "1zdfvicpll7a5iw6p12pmdcg8y30mr0j5miycn0nhjp8yzi9hdc5";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libnfnetlink
|
|
|
|
libnl
|
|
|
|
net-snmp
|
|
|
|
openssl
|
|
|
|
];
|
|
|
|
|
|
|
|
passthru.tests.keepalived = nixosTests.keepalived;
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig autoreconfHook ];
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--enable-sha1"
|
|
|
|
"--enable-snmp"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = "https://keepalived.org";
|
|
|
|
description = "Routing software written in C";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|