Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

64 lines
1.1 KiB
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
lib,
stdenv,
fetchFromGitHub,
nixosTests,
file,
libmnl,
libnftnl,
libnl,
net-snmp,
openssl,
pkg-config,
autoreconfHook,
withNetSnmp ? stdenv.buildPlatform.canExecute stdenv.hostPlatform,
}:
stdenv.mkDerivation rec {
pname = "keepalived";
version = "2.3.4";
src = fetchFromGitHub {
owner = "acassen";
repo = "keepalived";
rev = "v${version}";
sha256 = "sha256-Xv/UGIeZhRHQO5lxkaWgHDUW+3qBi3wFU4+Us1A2uE0=";
};
buildInputs = [
file
libmnl
libnftnl
libnl
openssl
]
++ lib.optionals withNetSnmp [
net-snmp
];
enableParallelBuilding = true;
passthru.tests.keepalived = nixosTests.keepalived;
nativeBuildInputs = [
pkg-config
autoreconfHook
];
configureFlags = [
"--enable-sha1"
]
++ lib.optionals withNetSnmp [
"--enable-snmp"
];
meta = with lib; {
homepage = "https://keepalived.org";
description = "Routing software written in C";
license = licenses.gpl2Plus;
platforms = platforms.linux;
maintainers = [ maintainers.raitobezarius ];
mainProgram = "keepalived";
};
}