diff options
author | Robert Scott <code@humanleg.org.uk> | 2021-11-09 19:52:26 +0000 |
---|---|---|
committer | Robert Scott <code@humanleg.org.uk> | 2021-11-09 20:22:03 +0000 |
commit | 2e10193d1505085f14d0cc348875dec67293e84f (patch) | |
tree | 7a09db70786a1fb6af8b1761459c5dfee31ed73d | |
parent | 37bd69672dc8592fe56e87011de4dc6ceca720a8 (diff) | |
download | nixpkgs-2e10193d1505085f14d0cc348875dec67293e84f.tar nixpkgs-2e10193d1505085f14d0cc348875dec67293e84f.tar.gz nixpkgs-2e10193d1505085f14d0cc348875dec67293e84f.tar.bz2 nixpkgs-2e10193d1505085f14d0cc348875dec67293e84f.tar.lz nixpkgs-2e10193d1505085f14d0cc348875dec67293e84f.tar.xz nixpkgs-2e10193d1505085f14d0cc348875dec67293e84f.tar.zst nixpkgs-2e10193d1505085f14d0cc348875dec67293e84f.zip |
gexiv2: fix tests on darwin
-rw-r--r-- | pkgs/development/libraries/gexiv2/default.nix | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgs/development/libraries/gexiv2/default.nix b/pkgs/development/libraries/gexiv2/default.nix index a556b64f1d3..0cf50566004 100644 --- a/pkgs/development/libraries/gexiv2/default.nix +++ b/pkgs/development/libraries/gexiv2/default.nix @@ -55,13 +55,15 @@ stdenv.mkDerivation rec { 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 # 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. # We are using a symlink that will be overridden during installation. 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 = { |