diff --git a/pkgs/tools/graphics/gmic/default.nix b/pkgs/tools/graphics/gmic/default.nix index 00a736fac822..8f66d054cde6 100644 --- a/pkgs/tools/graphics/gmic/default.nix +++ b/pkgs/tools/graphics/gmic/default.nix @@ -75,6 +75,9 @@ stdenv.mkDerivation rec { # CMake build files were moved to subdirectory. mv resources/CMakeLists.txt resources/cmake . + '' + lib.optionalString stdenv.isDarwin '' + substituteInPlace CMakeLists.txt \ + --replace "LD_LIBRARY_PATH" "DYLD_LIBRARY_PATH" ''; passthru = {