nixpkgs/pkgs/tools/networking/keepalived/default.nix
2019-10-29 22:56:34 +00:00

35 lines
694 B
Nix

{ stdenv, fetchFromGitHub, libnfnetlink, libnl, net_snmp, openssl, pkgconfig }:
stdenv.mkDerivation rec {
pname = "keepalived";
version = "1.4.5";
src = fetchFromGitHub {
owner = "acassen";
repo = "keepalived";
rev = "v${version}";
sha256 = "12r80rcfxrys826flaqcdlfhcr7q4ccsd62ra1svy9545vf02qmx";
};
buildInputs = [
libnfnetlink
libnl
net_snmp
openssl
];
nativeBuildInputs = [ pkgconfig ];
configureFlags = [
"--enable-sha1"
"--enable-snmp"
];
meta = with stdenv.lib; {
homepage = https://keepalived.org;
description = "Routing software written in C";
license = licenses.gpl2;
platforms = platforms.linux;
};
}