2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, nixosTests
|
2019-12-21 23:44:50 +01:00
|
|
|
, libnfnetlink, libnl, net-snmp, openssl
|
2021-01-17 04:51:22 +01:00
|
|
|
, pkg-config, autoreconfHook }:
|
2015-06-27 23:33:21 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "keepalived";
|
2020-11-02 17:13:59 +01:00
|
|
|
version = "2.1.5";
|
2017-02-13 19:36:12 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "acassen";
|
|
|
|
repo = "keepalived";
|
|
|
|
rev = "v${version}";
|
2020-11-02 17:13:59 +01:00
|
|
|
sha256 = "0zdh3g491mlc0x4g8q09vq62a7pb8n13a39jnfdgrm9k29khn0sj";
|
2015-06-27 23:33:21 +02:00
|
|
|
};
|
|
|
|
|
2017-02-13 19:36:12 +01:00
|
|
|
buildInputs = [
|
|
|
|
libnfnetlink
|
|
|
|
libnl
|
2019-12-21 23:44:50 +01:00
|
|
|
net-snmp
|
2017-02-13 19:36:12 +01:00
|
|
|
openssl
|
|
|
|
];
|
2015-06-27 23:33:21 +02:00
|
|
|
|
2019-12-22 08:45:31 +01:00
|
|
|
passthru.tests.keepalived = nixosTests.keepalived;
|
|
|
|
|
2021-01-17 04:51:22 +01:00
|
|
|
nativeBuildInputs = [ pkg-config autoreconfHook ];
|
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
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-04-01 03:11:51 +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;
|
|
|
|
};
|
|
|
|
}
|