mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-21 04:49:01 +02:00
Merge pull request #145243 from risicle/ris-gexiv2-darwin-fix
gexiv2: fix tests on darwin
This commit is contained in:
commit
5c91da7cca
|
@ -55,13 +55,15 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
|
|
||||||
preCheck = ''
|
preCheck = let
|
||||||
|
libSuffix = if stdenv.isDarwin then "2.dylib" else "so.2";
|
||||||
|
in ''
|
||||||
# Our gobject-introspection patches make the shared library paths absolute
|
# Our gobject-introspection patches make the shared library paths absolute
|
||||||
# in the GIR files. When running unit tests, the library is not yet installed,
|
# in the GIR files. When running unit tests, the library is not yet installed,
|
||||||
# though, so we need to replace the absolute path with a local one during build.
|
# though, so we need to replace the absolute path with a local one during build.
|
||||||
# We are using a symlink that will be overridden during installation.
|
# We are using a symlink that will be overridden during installation.
|
||||||
mkdir -p $out/lib
|
mkdir -p $out/lib
|
||||||
ln -s $PWD/gexiv2/libgexiv2.so.2 $out/lib/libgexiv2.so.2
|
ln -s $PWD/gexiv2/libgexiv2.${libSuffix} $out/lib/libgexiv2.${libSuffix}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
passthru = {
|
passthru = {
|
||||||
|
|
Loading…
Reference in a new issue