gobject-introspection: Conditionalize depsTargetTargetPropagated (#353237)

This commit is contained in:
Artturin 2024-11-13 21:39:47 +02:00 committed by GitHub
commit eebdbe1497
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -94,7 +94,10 @@ else
unwrapped = overriddenUnwrappedGir; unwrapped = overriddenUnwrappedGir;
}; };
dontStrip = true; dontStrip = true;
depsTargetTargetPropagated = [ overridenTargetUnwrappedGir ]; # Conditional is for `pkgsCross.x86_64-freebsd.pkgsBuildHost.gobject-introspection` `error: Don't know how to run x86_64-unknown-freebsd executables.`
# `pkgsCross.x86_64-freebsd.buildPackages.python3.withPackages (pp: [ pp.pygobject3 ])`
# Using the python module does not need this propagation
depsTargetTargetPropagated = lib.optionals (stdenv.targetPlatform.emulatorAvailable buildPackages) [ overridenTargetUnwrappedGir ];
buildCommand = '' buildCommand = ''
eval fixupPhase eval fixupPhase
${lib.concatMapStrings (output: '' ${lib.concatMapStrings (output: ''