···55555656 doCheck = true;
57575858- preCheck = ''
5858+ preCheck = let
5959+ libSuffix = if stdenv.isDarwin then "2.dylib" else "so.2";
6060+ in ''
5961 # Our gobject-introspection patches make the shared library paths absolute
6062 # in the GIR files. When running unit tests, the library is not yet installed,
6163 # though, so we need to replace the absolute path with a local one during build.
6264 # We are using a symlink that will be overridden during installation.
6365 mkdir -p $out/lib
6464- ln -s $PWD/gexiv2/libgexiv2.so.2 $out/lib/libgexiv2.so.2
6666+ ln -s $PWD/gexiv2/libgexiv2.${libSuffix} $out/lib/libgexiv2.${libSuffix}
6567 '';
66686769 passthru = {