diff --git a/pkgs/tools/networking/miniupnpc/default.nix b/pkgs/tools/networking/miniupnpc/default.nix index 09459e0e2834..2cca57121e91 100644 --- a/pkgs/tools/networking/miniupnpc/default.nix +++ b/pkgs/tools/networking/miniupnpc/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl }: +{ stdenv, fetchurl, which, cctools }: let generic = { version, sha256 }: @@ -10,11 +10,14 @@ let inherit sha256; }; + nativeBuildInputs = [] ++ + stdenv.lib.optionals stdenv.isDarwin [ which cctools ]; + patches = stdenv.lib.optional stdenv.isFreeBSD ./freebsd.patch; doCheck = !stdenv.isFreeBSD; - installFlags = "PREFIX=$(out) INSTALLPREFIX=$(out)"; + makeFlags = "PREFIX=$(out) INSTALLPREFIX=$(out)"; meta = { homepage = http://miniupnp.free.fr/; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 97cd763bb221..2da885c140cb 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3192,7 +3192,8 @@ with pkgs; minissdpd = callPackage ../tools/networking/minissdpd { }; - inherit (callPackage ../tools/networking/miniupnpc { }) + inherit (callPackage ../tools/networking/miniupnpc + { inherit (darwin) cctools; }) miniupnpc_1 miniupnpc_2; miniupnpc = miniupnpc_1;