1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-26 15:41:40 +00:00
nixpkgs/pkgs/tools/networking/keepalived/default.nix
2021-03-11 18:00:46 +00:00

39 lines
794 B
Nix

{ lib, stdenv, fetchFromGitHub, nixosTests
, libnfnetlink, libnl, net-snmp, openssl
, pkg-config, autoreconfHook }:
stdenv.mkDerivation rec {
pname = "keepalived";
version = "2.2.2";
src = fetchFromGitHub {
owner = "acassen";
repo = "keepalived";
rev = "v${version}";
sha256 = "sha256-qugEEbOQ4bemzelIOaNFvo3piMZpKUZGjR+4XF8aLHw=";
};
buildInputs = [
libnfnetlink
libnl
net-snmp
openssl
];
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.gpl2;
platforms = platforms.linux;
};
}