@@ -7,6 +7,7 @@
77, docbook_xsl, docbook_xml_dtd_412
88, gtk-doc
99, lib
10+, CoreServices
1011}:
1112
1213stdenv.mkDerivation rec {
@@ -41,18 +42,20 @@ stdenv.mkDerivation rec {
4142 docbook_xsl docbook_xml_dtd_412
4243 ];
4344
44− buildInputs =
45− lib.optionals stdenv.isLinux [ libcap libunwind elfutils ]
46− ++ lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.CoreServices;
45+ buildInputs = [ libunwind ]
46+ ++ lib.optionals stdenv.isLinux [ libcap elfutils ]
47+ ++ lib.optional stdenv.isDarwin CoreServices;
4748
4849 propagatedBuildInputs = [ glib ];
4950
5051 mesonFlags = [
5152 # Enables all features, so that we know when new dependencies are necessary.
52− "-Dauto_features=enabled"
53+ # "-Dauto_features=enabled"
5354 "-Ddbghelp=disabled" # not needed as we already provide libunwind and libdw, and dbghelp is a fallback to those
5455 "-Dexamples=disabled" # requires many dependencies and probably not useful for our users
55− ];
56+ ]
57+ # darwin.libunwind doesn't have pkgconfig definitions so meson doesn't detect it.
58+ ++ stdenv.lib.optional stdenv.isDarwin "-DHAVE_UNWIND=1";
5659
5760 postInstall = ''
5861 for prog in "$dev/bin/"*; do