2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, nixosTests
|
2020-04-24 23:36:52 +00:00
|
|
|
, libnfnetlink, libnl, net-snmp, openssl
|
|
|
|
, pkgconfig, autoreconfHook }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "keepalived";
|
2020-11-03 02:18:15 +00:00
|
|
|
version = "2.1.5";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "acassen";
|
|
|
|
repo = "keepalived";
|
|
|
|
rev = "v${version}";
|
2020-11-03 02:18:15 +00:00
|
|
|
sha256 = "0zdh3g491mlc0x4g8q09vq62a7pb8n13a39jnfdgrm9k29khn0sj";
|
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"
|
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://keepalived.org";
|
|
|
|
description = "Routing software written in C";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|