Merge pull request #277744 from NickCao/keepalived

keepalived: disable net-snmp support when cross compiling
This commit is contained in:
Rick van Schijndel 2024-02-13 16:12:15 +01:00 committed by GitHub
commit a8304edc8c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,7 +1,17 @@
{ lib, stdenv, fetchFromGitHub, nixosTests
, file, libmnl, libnftnl, libnl
, net-snmp, openssl, pkg-config
, autoreconfHook }:
{ 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";
@ -19,8 +29,9 @@ stdenv.mkDerivation rec {
libmnl
libnftnl
libnl
net-snmp
openssl
] ++ lib.optionals withNetSnmp [
net-snmp
];
enableParallelBuilding = true;
@ -31,8 +42,9 @@ stdenv.mkDerivation rec {
configureFlags = [
"--enable-sha1"
] ++ lib.optionals withNetSnmp [
"--enable-snmp"
];
];
meta = with lib; {
homepage = "https://keepalived.org";