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