From 8c6099ba657952fe89779b6b54579147a05b9bd1 Mon Sep 17 00:00:00 2001 From: Alois Wohlschlager Date: Sun, 27 Jul 2025 16:14:19 +0200 Subject: [PATCH] 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. --- pkgs/development/libraries/gobject-introspection/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/gobject-introspection/default.nix b/pkgs/development/libraries/gobject-introspection/default.nix index 47ebfb1e3e0e..d461983e8d06 100644 --- a/pkgs/development/libraries/gobject-introspection/default.nix +++ b/pkgs/development/libraries/gobject-introspection/default.nix @@ -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;