gobject-introspection: fix tests on darwin

We need to use platform specific shared library file extension when doing our symlink hack.
This commit is contained in:
Jan Tojnar 2020-04-04 04:07:29 +02:00
parent 7426a30bb7
commit 48271f8db9
No known key found for this signature in database
GPG Key ID: 7FAB2A15F7A607A4

@ -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"
'';