mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-13 01:03:25 +00:00
08c9562995
I will use this for a while, so… let's keep it tidy.
45 lines
908 B
Nix
45 lines
908 B
Nix
{ lib, stdenv, fetchFromGitHub, nixosTests
|
|
, file, libmnl, libnftnl, libnl
|
|
, net-snmp, openssl, pkg-config
|
|
, autoreconfHook }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "keepalived";
|
|
version = "2.2.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "acassen";
|
|
repo = "keepalived";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-QkebGQCYE4ccUvcxKG3qQ4wqC+RzxGHim8kgHQbIr5Q=";
|
|
};
|
|
|
|
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;
|
|
maintainers = [ maintainers.raitobezarius ];
|
|
};
|
|
}
|