2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, nixosTests
|
2019-12-21 22:44:50 +00:00
|
|
|
, libnfnetlink, libnl, net-snmp, openssl
|
2021-01-17 03:51:22 +00:00
|
|
|
, pkg-config, autoreconfHook }:
|
2015-06-27 21:33:21 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "keepalived";
|
2021-03-11 18:00:46 +00:00
|
|
|
version = "2.2.2";
|
2017-02-13 18:36:12 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "acassen";
|
|
|
|
repo = "keepalived";
|
|
|
|
rev = "v${version}";
|
2021-03-11 18:00:46 +00:00
|
|
|
sha256 = "sha256-qugEEbOQ4bemzelIOaNFvo3piMZpKUZGjR+4XF8aLHw=";
|
2015-06-27 21:33:21 +00:00
|
|
|
};
|
|
|
|
|
2017-02-13 18:36:12 +00:00
|
|
|
buildInputs = [
|
|
|
|
libnfnetlink
|
|
|
|
libnl
|
2019-12-21 22:44:50 +00:00
|
|
|
net-snmp
|
2017-02-13 18:36:12 +00:00
|
|
|
openssl
|
|
|
|
];
|
2015-06-27 21:33:21 +00:00
|
|
|
|
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 02:59:44 +00:00
|
|
|
|
2015-06-27 21:33:21 +00:00
|
|
|
configureFlags = [
|
|
|
|
"--enable-sha1"
|
2017-02-13 18:36:12 +00:00
|
|
|
"--enable-snmp"
|
|
|
|
];
|
2015-06-27 21:33:21 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://keepalived.org";
|
2016-06-20 10:53:46 +00:00
|
|
|
description = "Routing software written in C";
|
2015-06-27 21:33:21 +00:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|