3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/networking/keepalived/default.nix

39 lines
795 B
Nix
Raw Normal View History

2019-12-22 07:45:31 +00:00
{ stdenv, fetchFromGitHub, nixosTests
2019-12-21 22:44:50 +00:00
, libnfnetlink, libnl, net-snmp, openssl
2019-12-21 22:41:11 +00:00
, pkgconfig, autoreconfHook }:
2015-06-27 22:33:21 +01:00
stdenv.mkDerivation rec {
pname = "keepalived";
2020-07-03 22:06:32 +01:00
version = "2.1.3";
2017-02-13 18:36:12 +00:00
src = fetchFromGitHub {
owner = "acassen";
repo = "keepalived";
rev = "v${version}";
2020-07-03 22:06:32 +01:00
sha256 = "1zdfvicpll7a5iw6p12pmdcg8y30mr0j5miycn0nhjp8yzi9hdc5";
2015-06-27 22:33:21 +01: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 22:33:21 +01:00
2019-12-22 07:45:31 +00:00
passthru.tests.keepalived = nixosTests.keepalived;
2019-12-21 22:41:11 +00:00
nativeBuildInputs = [ pkgconfig 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
meta = with stdenv.lib; {
homepage = "https://keepalived.org";
description = "Routing software written in C";
2015-06-27 22:33:21 +01:00
license = licenses.gpl2;
platforms = platforms.linux;
};
}