summary refs log tree commit diff
diff options
context:
space:
mode:
authorRick van Schijndel <rol3517@gmail.com>2021-10-04 21:26:10 +0200
committerRick van Schijndel <rol3517@gmail.com>2022-05-05 22:30:44 +0200
commitdd1e75a9b2cf03cb097a08de1242fb2d0006bc93 (patch)
tree82d16757c7ddebd660669b4caecd8b8ccde4a2b8
parent3d52e344bd08d0b395f52be12b12c2855cd66586 (diff)
downloadnixpkgs-dd1e75a9b2cf03cb097a08de1242fb2d0006bc93.tar
nixpkgs-dd1e75a9b2cf03cb097a08de1242fb2d0006bc93.tar.gz
nixpkgs-dd1e75a9b2cf03cb097a08de1242fb2d0006bc93.tar.bz2
nixpkgs-dd1e75a9b2cf03cb097a08de1242fb2d0006bc93.tar.lz
nixpkgs-dd1e75a9b2cf03cb097a08de1242fb2d0006bc93.tar.xz
nixpkgs-dd1e75a9b2cf03cb097a08de1242fb2d0006bc93.tar.zst
nixpkgs-dd1e75a9b2cf03cb097a08de1242fb2d0006bc93.zip
libhandy: support cross-compilation
-rw-r--r--pkgs/development/libraries/libhandy/default.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/development/libraries/libhandy/default.nix b/pkgs/development/libraries/libhandy/default.nix
index 38e540efd4e..e9367f30af3 100644
--- a/pkgs/development/libraries/libhandy/default.nix
+++ b/pkgs/development/libraries/libhandy/default.nix
@@ -31,6 +31,7 @@ stdenv.mkDerivation rec {
   outputs = [
     "out"
     "dev"
+  ] ++ lib.optionals (stdenv.buildPlatform == stdenv.hostPlatform) [
     "devdoc"
   ] ++ lib.optionals enableGlade [
     "glade"
@@ -69,8 +70,9 @@ stdenv.mkDerivation rec {
   ];
 
   mesonFlags = [
-    "-Dgtk_doc=true"
+    "-Dgtk_doc=${lib.boolToString (stdenv.buildPlatform == stdenv.hostPlatform)}"
     "-Dglade_catalog=${if enableGlade then "enabled" else "disabled"}"
+    "-Dintrospection=${if (stdenv.buildPlatform == stdenv.hostPlatform) then "enabled" else "disabled"}"
   ];
 
   # Uses define_variable in pkg-config, but we still need it to use the glade output