diff options
author | Jan Tojnar <jtojnar@gmail.com> | 2020-04-04 04:07:29 +0200 |
---|---|---|
committer | Jan Tojnar <jtojnar@gmail.com> | 2020-04-04 04:07:29 +0200 |
commit | 48271f8db9cd3f5c7576c18451ecb53bf4c7b136 (patch) | |
tree | 9782fe25724218cf6921308dec7d737622b4a1f0 /pkgs/development/libraries | |
parent | 7426a30bb741478e66ce1300a431f41e918ee23d (diff) | |
download | nixlib-48271f8db9cd3f5c7576c18451ecb53bf4c7b136.tar nixlib-48271f8db9cd3f5c7576c18451ecb53bf4c7b136.tar.gz nixlib-48271f8db9cd3f5c7576c18451ecb53bf4c7b136.tar.bz2 nixlib-48271f8db9cd3f5c7576c18451ecb53bf4c7b136.tar.lz nixlib-48271f8db9cd3f5c7576c18451ecb53bf4c7b136.tar.xz nixlib-48271f8db9cd3f5c7576c18451ecb53bf4c7b136.tar.zst nixlib-48271f8db9cd3f5c7576c18451ecb53bf4c7b136.zip |
gobject-introspection: fix tests on darwin
We need to use platform specific shared library file extension when doing our symlink hack.
Diffstat (limited to 'pkgs/development/libraries')
-rw-r--r-- | pkgs/development/libraries/gobject-introspection/default.nix | 4 |
1 files 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" ''; |