mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-22 13:08:39 +03:00
libproxy: fix building on darwin
This commit is contained in:
parent
04051ee9d0
commit
7f6c4e2703
@ -1,5 +1,6 @@
|
|||||||
{ stdenv, lib, fetchFromGitHub, pkgconfig, cmake
|
{ stdenv, lib, fetchFromGitHub, pkgconfig, cmake, zlib
|
||||||
, dbus, networkmanager, spidermonkey_38, pcre, python2, python3 }:
|
, dbus, networkmanager, spidermonkey_38, pcre, python2, python3
|
||||||
|
, SystemConfiguration, CoreFoundation, JavaScriptCore }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "libproxy-${version}";
|
name = "libproxy-${version}";
|
||||||
@ -16,7 +17,10 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig cmake ];
|
nativeBuildInputs = [ pkgconfig cmake ];
|
||||||
|
|
||||||
buildInputs = [ dbus networkmanager spidermonkey_38 pcre python2 python3 ];
|
buildInputs = [ pcre python2 python3 zlib ]
|
||||||
|
++ (if stdenv.hostPlatform.isDarwin
|
||||||
|
then [ SystemConfiguration CoreFoundation JavaScriptCore ]
|
||||||
|
else [ spidermonkey_38 dbus networkmanager ]);
|
||||||
|
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
cmakeFlagsArray+=(
|
cmakeFlagsArray+=(
|
||||||
@ -27,7 +31,7 @@ stdenv.mkDerivation rec {
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux ++ platforms.darwin;
|
||||||
license = licenses.lgpl21;
|
license = licenses.lgpl21;
|
||||||
homepage = http://libproxy.github.io/libproxy/;
|
homepage = http://libproxy.github.io/libproxy/;
|
||||||
description = "A library that provides automatic proxy configuration management";
|
description = "A library that provides automatic proxy configuration management";
|
||||||
|
@ -9894,9 +9894,7 @@ with pkgs;
|
|||||||
};
|
};
|
||||||
|
|
||||||
libproxy = callPackage ../development/libraries/libproxy {
|
libproxy = callPackage ../development/libraries/libproxy {
|
||||||
stdenv = if stdenv.isDarwin
|
inherit (darwin.apple_sdk.frameworks) SystemConfiguration CoreFoundation JavaScriptCore;
|
||||||
then overrideCC stdenv gcc
|
|
||||||
else stdenv;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
libpseudo = callPackage ../development/libraries/libpseudo { };
|
libpseudo = callPackage ../development/libraries/libpseudo { };
|
||||||
|
Loading…
Reference in New Issue
Block a user