From 48271f8db9cd3f5c7576c18451ecb53bf4c7b136 Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Sat, 4 Apr 2020 04:07:29 +0200 Subject: [PATCH] gobject-introspection: fix tests on darwin We need to use platform specific shared library file extension when doing our symlink hack. --- 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 3d13553cfd2e..f754756f768b 100644 --- a/pkgs/development/libraries/gobject-introspection/default.nix +++ b/pkgs/development/libraries/gobject-introspection/default.nix @@ -61,9 +61,9 @@ stdenv.mkDerivation rec { # 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.so $out/lib/libregress-1.0.so + ln -s $PWD/tests/scanner/libregress-1.0${stdenv.targetPlatform.extensions.sharedLibrary} $out/lib/libregress-1.0${stdenv.targetPlatform.extensions.sharedLibrary} cleanLibregressSymlink() { - rm $out/lib/libregress-1.0.so + rm $out/lib/libregress-1.0${stdenv.targetPlatform.extensions.sharedLibrary} } preInstallPhases="$preInstallPhases cleanLibregressSymlink" '';