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:
parent
7426a30bb7
commit
48271f8db9
@ -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"
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user