nixpkgs/pkgs/tools/networking/keepalived/default.nix

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

44 lines
859 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, nixosTests
, file, libmnl, libnftnl, libnl
, net-snmp, openssl, pkg-config
, autoreconfHook }:
2015-06-27 21:33:21 +00:00
stdenv.mkDerivation rec {
pname = "keepalived";
2023-06-12 08:04:15 +00:00
version = "2.2.8";
2017-02-13 18:36:12 +00:00
src = fetchFromGitHub {
owner = "acassen";
repo = "keepalived";
rev = "v${version}";
2023-06-12 08:04:15 +00:00
sha256 = "sha256-QkebGQCYE4ccUvcxKG3qQ4wqC+RzxGHim8kgHQbIr5Q=";
2015-06-27 21:33:21 +00:00
};
2017-02-13 18:36:12 +00:00
buildInputs = [
file
libmnl
libnftnl
2017-02-13 18:36:12 +00:00
libnl
2019-12-21 22:44:50 +00:00
net-snmp
2017-02-13 18:36:12 +00:00
openssl
];
2015-06-27 21:33:21 +00:00
enableParallelBuilding = true;
2019-12-22 07:45:31 +00:00
passthru.tests.keepalived = nixosTests.keepalived;
2021-01-17 03:51:22 +00:00
nativeBuildInputs = [ pkg-config autoreconfHook ];
2015-06-28 02:59:44 +00:00
2015-06-27 21:33:21 +00:00
configureFlags = [
"--enable-sha1"
2017-02-13 18:36:12 +00:00
"--enable-snmp"
];
2015-06-27 21:33:21 +00:00
meta = with lib; {
homepage = "https://keepalived.org";
description = "Routing software written in C";
license = licenses.gpl2Plus;
2015-06-27 21:33:21 +00:00
platforms = platforms.linux;
};
}