libical: fix darwin build
This commit is contained in:
parent
28b48756d5
commit
371d80c468
@ -12,13 +12,12 @@
|
|||||||
, libical
|
, libical
|
||||||
, python3
|
, python3
|
||||||
, tzdata
|
, tzdata
|
||||||
|
, fixDarwinDylibNames
|
||||||
, introspectionSupport ? stdenv.buildPlatform == stdenv.hostPlatform
|
, introspectionSupport ? stdenv.buildPlatform == stdenv.hostPlatform
|
||||||
, gobject-introspection ? null
|
, gobject-introspection
|
||||||
, vala ? null
|
, vala
|
||||||
}:
|
}:
|
||||||
|
|
||||||
assert introspectionSupport -> gobject-introspection != null && vala != null;
|
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "libical";
|
pname = "libical";
|
||||||
version = "3.0.9";
|
version = "3.0.9";
|
||||||
@ -47,6 +46,8 @@ stdenv.mkDerivation rec {
|
|||||||
] ++ lib.optionals introspectionSupport [
|
] ++ lib.optionals introspectionSupport [
|
||||||
gobject-introspection
|
gobject-introspection
|
||||||
vala
|
vala
|
||||||
|
] ++ lib.optionals stdenv.isDarwin [
|
||||||
|
fixDarwinDylibNames
|
||||||
];
|
];
|
||||||
installCheckInputs = [
|
installCheckInputs = [
|
||||||
# running libical-glib tests
|
# running libical-glib tests
|
||||||
@ -80,6 +81,13 @@ stdenv.mkDerivation rec {
|
|||||||
# LD_LIBRARY_PATH and GI_TYPELIB_PATH variables
|
# LD_LIBRARY_PATH and GI_TYPELIB_PATH variables
|
||||||
doInstallCheck = true;
|
doInstallCheck = true;
|
||||||
enableParallelChecking = false;
|
enableParallelChecking = false;
|
||||||
|
preInstallCheck = if stdenv.isDarwin then ''
|
||||||
|
for testexe in $(find ./src/test -maxdepth 1 -type f -executable); do
|
||||||
|
for lib in $(cd lib && ls *.3.dylib); do
|
||||||
|
install_name_tool -change $lib $out/lib/$lib $testexe
|
||||||
|
done
|
||||||
|
done
|
||||||
|
'' else null;
|
||||||
installCheckPhase = ''
|
installCheckPhase = ''
|
||||||
runHook preInstallCheck
|
runHook preInstallCheck
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user