blob: 9ffa8d1ee09eab09cdb57219ff84b732e79efe18 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
{ 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.0";
src = fetchFromGitHub {
owner = "acassen";
repo = "keepalived";
rev = "v${version}";
sha256 = "sha256-FAmHhMBCG9sezCfp+WvY1klta2BvnGjztQ87arvJTE0=";
};
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 ];
};
}
|