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

44 lines
859 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, nixosTests
, file, libmnl, libnftnl, libnl
, net-snmp, openssl, pkg-config
, autoreconfHook }:
2015-06-27 23:33:21 +02:00
stdenv.mkDerivation rec {
pname = "keepalived";
version = "2.2.4";
2017-02-13 19:36:12 +01:00
src = fetchFromGitHub {
owner = "acassen";
repo = "keepalived";
rev = "v${version}";
sha256 = "sha256-WXKu+cabMmXNHiLwXrQqS8GQHIWYkee7vPddyGURWic=";
2015-06-27 23:33:21 +02:00
};
2017-02-13 19:36:12 +01:00
buildInputs = [
file
libmnl
libnftnl
2017-02-13 19:36:12 +01:00
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
enableParallelBuilding = true;
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
meta = with lib; {
homepage = "https://keepalived.org";
description = "Routing software written in C";
license = licenses.gpl2Plus;
2015-06-27 23:33:21 +02:00
platforms = platforms.linux;
};
}