nixpkgs/pkgs/tools/networking/keepalived/default.nix

39 lines
794 B
Nix
Raw Normal View History

2019-12-21 23:45:31 -08:00
{ stdenv, fetchFromGitHub, nixosTests
2019-12-21 14:44:50 -08:00
, libnfnetlink, libnl, net-snmp, openssl
2019-12-21 14:41:11 -08:00
, pkgconfig, autoreconfHook }:
2015-06-27 14:33:21 -07:00
stdenv.mkDerivation rec {
pname = "keepalived";
2019-12-21 14:41:11 -08:00
version = "2.0.19";
2017-02-13 10:36:12 -08:00
src = fetchFromGitHub {
owner = "acassen";
repo = "keepalived";
rev = "v${version}";
2019-12-21 14:41:11 -08:00
sha256 = "05jgr0f04z69x3zf3b9z04wczl15fnh69bs6j0yw55fij1k9nj4d";
2015-06-27 14:33:21 -07:00
};
2017-02-13 10:36:12 -08:00
buildInputs = [
libnfnetlink
libnl
2019-12-21 14:44:50 -08:00
net-snmp
2017-02-13 10:36:12 -08:00
openssl
];
2015-06-27 14:33:21 -07:00
2019-12-21 23:45:31 -08:00
passthru.tests.keepalived = nixosTests.keepalived;
2019-12-21 14:41:11 -08:00
nativeBuildInputs = [ pkgconfig autoreconfHook ];
2015-06-27 19:59:44 -07:00
2015-06-27 14:33:21 -07:00
configureFlags = [
"--enable-sha1"
2017-02-13 10:36:12 -08:00
"--enable-snmp"
];
2015-06-27 14:33:21 -07:00
meta = with stdenv.lib; {
homepage = https://keepalived.org;
description = "Routing software written in C";
2015-06-27 14:33:21 -07:00
license = licenses.gpl2;
platforms = platforms.linux;
};
}