···4343 # libraries are in a system path or in the same directory as the
4444 # executable. This flag makes the shared library accessible from its
4545 # nix/store directory.
4646- cmakeFlags="-DCMAKE_INSTALL_NAME_DIR=$prefix/lib $cmakeFlags"
4646+ cmakeFlags="-DCMAKE_INSTALL_NAME_DIR=${!outputLib}/lib $cmakeFlags"
4747 cmakeFlags="-DCMAKE_INSTALL_LIBDIR=${!outputLib}/lib $cmakeFlags"
4848 cmakeFlags="-DCMAKE_INSTALL_INCLUDEDIR=${!outputDev}/include $cmakeFlags"
4949
-4
pkgs/tools/compression/brotli/default.nix
···2121 # and the wonderful bazel BUILD file is already there (yay case-insensitivity?)
2222 prePatch = "rm BUILD";
23232424- preConfigure = stdenv.lib.optionalString stdenv.isDarwin ''
2525- cmakeFlagsArray+=("-DCMAKE_INSTALL_NAME_DIR=$lib/lib")
2626- '';
2727-2824 meta = with stdenv.lib; {
2925 inherit (src.meta) homepage;
3026