lol

gexiv2: fix tests on darwin

+4 -2
+4 -2
pkgs/development/libraries/gexiv2/default.nix
··· 55 55 56 56 doCheck = true; 57 57 58 - preCheck = '' 58 + preCheck = let 59 + libSuffix = if stdenv.isDarwin then "2.dylib" else "so.2"; 60 + in '' 59 61 # Our gobject-introspection patches make the shared library paths absolute 60 62 # in the GIR files. When running unit tests, the library is not yet installed, 61 63 # though, so we need to replace the absolute path with a local one during build. 62 64 # We are using a symlink that will be overridden during installation. 63 65 mkdir -p $out/lib 64 - ln -s $PWD/gexiv2/libgexiv2.so.2 $out/lib/libgexiv2.so.2 66 + ln -s $PWD/gexiv2/libgexiv2.${libSuffix} $out/lib/libgexiv2.${libSuffix} 65 67 ''; 66 68 67 69 passthru = {