diff --git a/pkgs/by-name/bu/bun/package.nix b/pkgs/by-name/bu/bun/package.nix index e3bb543c8d3d..eb5b74d6a9e3 100644 --- a/pkgs/by-name/bu/bun/package.nix +++ b/pkgs/by-name/bu/bun/package.nix @@ -35,7 +35,8 @@ stdenvNoCC.mkDerivation rec { runHook postInstall ''; - postInstall = + postPhases = [ "postPatchelf"]; + postPatchelf = lib.optionalString stdenvNoCC.hostPlatform.isDarwin '' wrapProgram $out/bin/bun \ --prefix DYLD_LIBRARY_PATH : ${lib.makeLibraryPath [ darwin.ICU ]}