bun: run post hooks after patchelf

This commit is contained in:
Sander 2024-11-22 17:21:57 +00:00
parent 25bd3f0971
commit a5d52b7a45
No known key found for this signature in database
GPG Key ID: D1A763BC84F34603

View File

@ -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 ]}