|
|
|
@ -13,7 +13,7 @@ |
|
|
|
|
, python3 |
|
|
|
|
, tzdata |
|
|
|
|
, fixDarwinDylibNames |
|
|
|
|
, introspectionSupport ? stdenv.buildPlatform == stdenv.hostPlatform |
|
|
|
|
, withIntrospection ? stdenv.buildPlatform == stdenv.hostPlatform |
|
|
|
|
, gobject-introspection |
|
|
|
|
, vala |
|
|
|
|
}: |
|
|
|
@ -31,6 +31,7 @@ stdenv.mkDerivation rec { |
|
|
|
|
sha256 = "sha256-gZ6IBjG5pNKJ+hWcTzXMP7yxL4he4LTklZGoC9vXra8="; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
strictDeps = true; |
|
|
|
|
nativeBuildInputs = [ |
|
|
|
|
cmake |
|
|
|
|
ninja |
|
|
|
@ -43,7 +44,7 @@ stdenv.mkDerivation rec { |
|
|
|
|
] ++ lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [ |
|
|
|
|
# provides ical-glib-src-generator that runs during build |
|
|
|
|
libical |
|
|
|
|
] ++ lib.optionals introspectionSupport [ |
|
|
|
|
] ++ lib.optionals withIntrospection [ |
|
|
|
|
gobject-introspection |
|
|
|
|
vala |
|
|
|
|
] ++ lib.optionals stdenv.isDarwin [ |
|
|
|
@ -60,13 +61,14 @@ stdenv.mkDerivation rec { |
|
|
|
|
glib |
|
|
|
|
libxml2 |
|
|
|
|
icu |
|
|
|
|
] ++ lib.optionals withIntrospection [ |
|
|
|
|
gobject-introspection |
|
|
|
|
]; |
|
|
|
|
|
|
|
|
|
cmakeFlags = [ |
|
|
|
|
"-DENABLE_GTK_DOC=False" |
|
|
|
|
] ++ lib.optionals introspectionSupport [ |
|
|
|
|
"-DGOBJECT_INTROSPECTION=True" |
|
|
|
|
"-DICAL_GLIB_VAPI=True" |
|
|
|
|
"-DGOBJECT_INTROSPECTION=${if withIntrospection then "True" else "False"}" |
|
|
|
|
"-DICAL_GLIB_VAPI=${if withIntrospection then "True" else "False"}" |
|
|
|
|
] ++ lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [ |
|
|
|
|
"-DIMPORT_ICAL_GLIB_SRC_GENERATOR=${lib.getDev buildPackages.libical}/lib/cmake/LibIcal/IcalGlibSrcGenerator.cmake" |
|
|
|
|
]; |
|
|
|
|