Merge pull request #277744 from NickCao/keepalived

keepalived: disable net-snmp support when cross compiling

authored by Rick van Schijndel and committed by GitHub a8304edc 9323295d

+18 -6
+18 -6
pkgs/tools/networking/keepalived/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub, nixosTests 2 - , file, libmnl, libnftnl, libnl 3 - , net-snmp, openssl, pkg-config 4 - , autoreconfHook }: 1 + { lib 2 + , stdenv 3 + , fetchFromGitHub 4 + , nixosTests 5 + , file 6 + , libmnl 7 + , libnftnl 8 + , libnl 9 + , net-snmp 10 + , openssl 11 + , pkg-config 12 + , autoreconfHook 13 + , withNetSnmp ? stdenv.buildPlatform.canExecute stdenv.hostPlatform 14 + }: 5 15 6 16 stdenv.mkDerivation rec { 7 17 pname = "keepalived"; ··· 19 29 libmnl 20 30 libnftnl 21 31 libnl 32 + openssl 33 + ] ++ lib.optionals withNetSnmp [ 22 34 net-snmp 23 - openssl 24 35 ]; 25 36 26 37 enableParallelBuilding = true; ··· 31 42 32 43 configureFlags = [ 33 44 "--enable-sha1" 45 + ] ++ lib.optionals withNetSnmp [ 34 46 "--enable-snmp" 35 - ]; 47 + ]; 36 48 37 49 meta = with lib; { 38 50 homepage = "https://keepalived.org";