net-snmp: darwin support (#339244)

authored by

Aleksana and committed by
GitHub
1bbd4b00 781746bd

+12 -4
+12 -4
pkgs/servers/monitoring/net-snmp/default.nix
··· 1 { lib, stdenv, fetchurl 2 , file, openssl, perl, nettools 3 - , withPerlTools ? false }: let 4 5 perlWithPkgs = perl.withPackages (ps: with ps; [ 6 JSON ··· 52 -e "/NETSNMP_CONFIGURE_OPTIONS/ s|$NIX_STORE/[a-z0-9]\{32\}-|$NIX_STORE/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-|g" 53 ''; 54 55 - nativeBuildInputs = [ nettools file ]; 56 buildInputs = [ openssl ] 57 - ++ lib.optional withPerlTools perlWithPkgs; 58 59 enableParallelBuilding = true; 60 # Missing dependencies during relinking: ··· 74 description = "Clients and server for the SNMP network monitoring protocol"; 75 homepage = "http://www.net-snmp.org/"; 76 license = licenses.bsd3; 77 - platforms = platforms.linux; 78 }; 79 }
··· 1 { lib, stdenv, fetchurl 2 , file, openssl, perl, nettools 3 + , autoreconfHook 4 + , withPerlTools ? false 5 + , darwin }: let 6 7 perlWithPkgs = perl.withPackages (ps: with ps; [ 8 JSON ··· 54 -e "/NETSNMP_CONFIGURE_OPTIONS/ s|$NIX_STORE/[a-z0-9]\{32\}-|$NIX_STORE/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-|g" 55 ''; 56 57 + nativeBuildInputs = [ nettools file autoreconfHook ]; 58 buildInputs = [ openssl ] 59 + ++ lib.optional withPerlTools perlWithPkgs 60 + ++ lib.optionals stdenv.isDarwin [ 61 + darwin.apple_sdk.frameworks.ApplicationServices 62 + darwin.apple_sdk.frameworks.CoreServices 63 + darwin.apple_sdk.frameworks.IOKit 64 + darwin.apple_sdk.frameworks.DiskArbitration 65 + ]; 66 67 enableParallelBuilding = true; 68 # Missing dependencies during relinking: ··· 82 description = "Clients and server for the SNMP network monitoring protocol"; 83 homepage = "http://www.net-snmp.org/"; 84 license = licenses.bsd3; 85 + platforms = platforms.unix; 86 }; 87 }