mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
miniupnpc: fix on darwin
For some reason miniupnpc needs libtool for static linking. Probably not ideal but it’s doing similar on other platforms as well (using ar).
This commit is contained in:
parent
f3a54b014c
commit
c7f14143c4
@ -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/;
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user