gobject-introspection: fix inappropriate targetPlatform usage

The library is build for the platform the built gobject-introspection will run
on, which is the hostPlatform, not the targetPlatform.
This commit is contained in:
Alois Wohlschlager 2025-07-27 16:14:19 +02:00
parent 94def634a2
commit 8c6099ba65
No known key found for this signature in database
GPG Key ID: E0F59EA5E5216914

View File

@ -160,11 +160,11 @@ stdenv.mkDerivation (finalAttrs: {
# though, so we need to replace the absolute path with a local one during build.
# We are using a symlink that we will delete before installation.
mkdir -p $out/lib
ln -s $PWD/tests/scanner/libregress-1.0${stdenv.targetPlatform.extensions.sharedLibrary} $out/lib/libregress-1.0${stdenv.targetPlatform.extensions.sharedLibrary}
ln -s $PWD/tests/scanner/libregress-1.0${stdenv.hostPlatform.extensions.sharedLibrary} $out/lib/libregress-1.0${stdenv.hostPlatform.extensions.sharedLibrary}
'';
postCheck = ''
rm $out/lib/libregress-1.0${stdenv.targetPlatform.extensions.sharedLibrary}
rm $out/lib/libregress-1.0${stdenv.hostPlatform.extensions.sharedLibrary}
'';
setupHook = ./setup-hook.sh;