mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-18 11:44:07 +00:00
1387fd0fd1
Fixes CVE-2021-44225. https://www.keepalived.org/release-notes/Release-2.2.7.html
44 lines
859 B
Nix
44 lines
859 B
Nix
{ lib, stdenv, fetchFromGitHub, nixosTests
|
|
, file, libmnl, libnftnl, libnl
|
|
, net-snmp, openssl, pkg-config
|
|
, autoreconfHook }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "keepalived";
|
|
version = "2.2.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "acassen";
|
|
repo = "keepalived";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-erpYC4klkgvZ9D+4qM/qIHajsyOGKRbX7lhs6lfWFTQ=";
|
|
};
|
|
|
|
buildInputs = [
|
|
file
|
|
libmnl
|
|
libnftnl
|
|
libnl
|
|
net-snmp
|
|
openssl
|
|
];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
passthru.tests.keepalived = nixosTests.keepalived;
|
|
|
|
nativeBuildInputs = [ pkg-config autoreconfHook ];
|
|
|
|
configureFlags = [
|
|
"--enable-sha1"
|
|
"--enable-snmp"
|
|
];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://keepalived.org";
|
|
description = "Routing software written in C";
|
|
license = licenses.gpl2Plus;
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|