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 }: 5 6 stdenv.mkDerivation rec { 7 pname = "keepalived"; ··· 19 libmnl 20 libnftnl 21 libnl 22 net-snmp 23 - openssl 24 ]; 25 26 enableParallelBuilding = true; ··· 31 32 configureFlags = [ 33 "--enable-sha1" 34 "--enable-snmp" 35 - ]; 36 37 meta = with lib; { 38 homepage = "https://keepalived.org";
··· 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 + }: 15 16 stdenv.mkDerivation rec { 17 pname = "keepalived"; ··· 29 libmnl 30 libnftnl 31 libnl 32 + openssl 33 + ] ++ lib.optionals withNetSnmp [ 34 net-snmp 35 ]; 36 37 enableParallelBuilding = true; ··· 42 43 configureFlags = [ 44 "--enable-sha1" 45 + ] ++ lib.optionals withNetSnmp [ 46 "--enable-snmp" 47 + ]; 48 49 meta = with lib; { 50 homepage = "https://keepalived.org";