nixpkgs/pkgs/tools/networking/keepalived/default.nix
2018-02-06 08:37:00 +01:00

36 lines
756 B
Nix

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