libproxy: Fix build on darwin
This commit is contained in:
parent
257e7bee59
commit
107ae55341
|
@ -41,7 +41,8 @@ stdenv.mkDerivation (finalAttrs: {
|
||||||
"src/backend/plugins/config-gnome/config-gnome.c"
|
"src/backend/plugins/config-gnome/config-gnome.c"
|
||||||
];
|
];
|
||||||
})
|
})
|
||||||
|
]
|
||||||
|
++ lib.optionals (!stdenv.hostPlatform.isDarwin) [
|
||||||
# Disable schema presence detection, it would fail because it cannot be autopatched,
|
# Disable schema presence detection, it would fail because it cannot be autopatched,
|
||||||
# and it will be hardcoded by the next patch anyway.
|
# and it will be hardcoded by the next patch anyway.
|
||||||
./skip-gsettings-detection.patch
|
./skip-gsettings-detection.patch
|
||||||
|
@ -67,14 +68,17 @@ stdenv.mkDerivation (finalAttrs: {
|
||||||
curl
|
curl
|
||||||
duktape
|
duktape
|
||||||
] ++ (if stdenv.hostPlatform.isDarwin then (with darwin.apple_sdk.frameworks; [
|
] ++ (if stdenv.hostPlatform.isDarwin then (with darwin.apple_sdk.frameworks; [
|
||||||
CoreFoundation
|
Foundation
|
||||||
SystemConfiguration
|
|
||||||
]) else [
|
]) else [
|
||||||
glib
|
glib
|
||||||
gsettings-desktop-schemas
|
gsettings-desktop-schemas
|
||||||
]);
|
]);
|
||||||
|
|
||||||
doCheck = true;
|
mesonFlags = lib.optionals stdenv.hostPlatform.isDarwin [
|
||||||
|
"-Dconfig-gnome=false"
|
||||||
|
];
|
||||||
|
|
||||||
|
doCheck = !stdenv.hostPlatform.isDarwin;
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
# Fix running script that will try to install git hooks.
|
# Fix running script that will try to install git hooks.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user