forked from mirrors/nixpkgs
46420bbaa3
treewide replacement of stdenv.mkDerivation rec { name = "*-${version}"; version = "*"; to pname
35 lines
694 B
Nix
35 lines
694 B
Nix
{ stdenv, fetchFromGitHub, libnfnetlink, libnl, net_snmp, openssl, pkgconfig }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "keepalived";
|
|
version = "1.4.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "acassen";
|
|
repo = "keepalived";
|
|
rev = "v${version}";
|
|
sha256 = "154yxs6kwpi9yc4pa45ba3z3bfwzgmmmja5nk3d9mxq6w6s1swcy";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|