2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, nixosTests
|
2021-10-09 03:16:43 +01:00
|
|
|
, file, libmnl, libnftnl, libnl
|
|
|
|
, net-snmp, openssl, pkg-config
|
|
|
|
, autoreconfHook }:
|
2015-06-27 22:33:21 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "keepalived";
|
2022-01-27 16:24:40 +00:00
|
|
|
version = "2.2.7";
|
2017-02-13 18:36:12 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "acassen";
|
|
|
|
repo = "keepalived";
|
|
|
|
rev = "v${version}";
|
2022-01-27 16:24:40 +00:00
|
|
|
sha256 = "sha256-erpYC4klkgvZ9D+4qM/qIHajsyOGKRbX7lhs6lfWFTQ=";
|
2015-06-27 22:33:21 +01:00
|
|
|
};
|
|
|
|
|
2017-02-13 18:36:12 +00:00
|
|
|
buildInputs = [
|
2021-10-09 03:16:43 +01:00
|
|
|
file
|
|
|
|
libmnl
|
|
|
|
libnftnl
|
2017-02-13 18:36:12 +00:00
|
|
|
libnl
|
2019-12-21 22:44:50 +00:00
|
|
|
net-snmp
|
2017-02-13 18:36:12 +00:00
|
|
|
openssl
|
|
|
|
];
|
2015-06-27 22:33:21 +01:00
|
|
|
|
2021-10-09 03:16:43 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2019-12-22 07:45:31 +00:00
|
|
|
passthru.tests.keepalived = nixosTests.keepalived;
|
|
|
|
|
2021-01-17 03:51:22 +00:00
|
|
|
nativeBuildInputs = [ pkg-config autoreconfHook ];
|
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
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://keepalived.org";
|
2016-06-20 11:53:46 +01:00
|
|
|
description = "Routing software written in C";
|
2021-10-09 03:16:43 +01:00
|
|
|
license = licenses.gpl2Plus;
|
2015-06-27 22:33:21 +01:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|