libproxy: format with nixpkgs-fmt
This commit is contained in:
parent
d0ddf6415a
commit
e9953b602c
|
@ -1,6 +1,19 @@
|
||||||
{ stdenv, fetchFromGitHub, pkgconfig, cmake, zlib, fetchpatch
|
{ stdenv
|
||||||
, dbus, networkmanager, spidermonkey_38, pcre, python2, python3
|
, fetchFromGitHub
|
||||||
, SystemConfiguration, CoreFoundation, JavaScriptCore }:
|
, pkgconfig
|
||||||
|
, cmake
|
||||||
|
, zlib
|
||||||
|
, fetchpatch
|
||||||
|
, dbus
|
||||||
|
, networkmanager
|
||||||
|
, spidermonkey_38
|
||||||
|
, pcre
|
||||||
|
, python2
|
||||||
|
, python3
|
||||||
|
, SystemConfiguration
|
||||||
|
, CoreFoundation
|
||||||
|
, JavaScriptCore
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "libproxy";
|
pname = "libproxy";
|
||||||
|
@ -15,12 +28,25 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
outputs = [ "out" "dev" "py2" "py3" ];
|
outputs = [ "out" "dev" "py2" "py3" ];
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig cmake ];
|
nativeBuildInputs = [
|
||||||
|
pkgconfig
|
||||||
|
cmake
|
||||||
|
];
|
||||||
|
|
||||||
buildInputs = [ pcre python2 python3 zlib ]
|
buildInputs = [
|
||||||
++ (if stdenv.hostPlatform.isDarwin
|
pcre
|
||||||
then [ SystemConfiguration CoreFoundation JavaScriptCore ]
|
python2
|
||||||
else [ spidermonkey_38 dbus networkmanager ]);
|
python3
|
||||||
|
zlib
|
||||||
|
] ++ (if stdenv.hostPlatform.isDarwin then [
|
||||||
|
SystemConfiguration
|
||||||
|
CoreFoundation
|
||||||
|
JavaScriptCore
|
||||||
|
] else [
|
||||||
|
spidermonkey_38
|
||||||
|
dbus
|
||||||
|
networkmanager
|
||||||
|
]);
|
||||||
|
|
||||||
cmakeFlags = [
|
cmakeFlags = [
|
||||||
"-DWITH_MOZJS=ON"
|
"-DWITH_MOZJS=ON"
|
||||||
|
@ -28,11 +54,12 @@ stdenv.mkDerivation rec {
|
||||||
"-DPYTHON3_SITEPKG_DIR=${placeholder "py3"}/${python3.sitePackages}"
|
"-DPYTHON3_SITEPKG_DIR=${placeholder "py3"}/${python3.sitePackages}"
|
||||||
];
|
];
|
||||||
|
|
||||||
patches = stdenv.lib.optional stdenv.isDarwin
|
patches = stdenv.lib.optionals stdenv.isDarwin [
|
||||||
(fetchpatch {
|
(fetchpatch {
|
||||||
url = "https://github.com/libproxy/libproxy/commit/44158f03f8522116758d335688ed840dfcb50ac8.patch";
|
url = "https://github.com/libproxy/libproxy/commit/44158f03f8522116758d335688ed840dfcb50ac8.patch";
|
||||||
sha256 = "0axfvb6j7gcys6fkwi9dkn006imhvm3kqr83gpwban8419n0q5v1";
|
sha256 = "0axfvb6j7gcys6fkwi9dkn006imhvm3kqr83gpwban8419n0q5v1";
|
||||||
});
|
})
|
||||||
|
];
|
||||||
|
|
||||||
doCheck = false; # fails 1 out of 10 tests
|
doCheck = false; # fails 1 out of 10 tests
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue