2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, nixosTests
|
2021-10-09 14:59:57 +00:00
|
|
|
, file, libmnl, libnftnl, libnl
|
|
|
|
, net-snmp, openssl, pkg-config
|
|
|
|
, autoreconfHook }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "keepalived";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "2.2.8";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "acassen";
|
|
|
|
repo = "keepalived";
|
|
|
|
rev = "v${version}";
|
2023-07-15 17:15:38 +00:00
|
|
|
sha256 = "sha256-QkebGQCYE4ccUvcxKG3qQ4wqC+RzxGHim8kgHQbIr5Q=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
2021-10-09 14:59:57 +00:00
|
|
|
file
|
|
|
|
libmnl
|
|
|
|
libnftnl
|
2020-04-24 23:36:52 +00:00
|
|
|
libnl
|
|
|
|
net-snmp
|
|
|
|
openssl
|
|
|
|
];
|
|
|
|
|
2021-10-09 14:59:57 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
passthru.tests.keepalived = nixosTests.keepalived;
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config autoreconfHook ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
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";
|
2021-10-09 14:59:57 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|