Merge pull request #171711 from Mindavi/libhandy/cross

libhandy: support cross-compilation
main
Rick van Schijndel 2 years ago committed by GitHub
commit 8e499907b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      pkgs/development/libraries/libhandy/default.nix

@ -31,6 +31,7 @@ stdenv.mkDerivation rec {
outputs = [ outputs = [
"out" "out"
"dev" "dev"
] ++ lib.optionals (stdenv.buildPlatform == stdenv.hostPlatform) [
"devdoc" "devdoc"
] ++ lib.optionals enableGlade [ ] ++ lib.optionals enableGlade [
"glade" "glade"
@ -69,8 +70,9 @@ stdenv.mkDerivation rec {
]; ];
mesonFlags = [ mesonFlags = [
"-Dgtk_doc=true" "-Dgtk_doc=${lib.boolToString (stdenv.buildPlatform == stdenv.hostPlatform)}"
"-Dglade_catalog=${if enableGlade then "enabled" else "disabled"}" "-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 # Uses define_variable in pkg-config, but we still need it to use the glade output

Loading…
Cancel
Save