bun: fix cross-compilation (#347901)

This commit is contained in:
Sefa Eyeoglu 2024-10-21 22:36:42 +02:00 committed by GitHub
commit 9c7ff88a02
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -33,8 +33,8 @@ stdenvNoCC.mkDerivation rec {
runHook postInstall
'';
postPhases = [ "postPatchelf" ];
postPatchelf = lib.optionalString (stdenvNoCC.buildPlatform.canExecute stdenvNoCC.hostPlatform) ''
postPhases = lib.optionals (stdenvNoCC.buildPlatform.canExecute stdenvNoCC.hostPlatform) [ "postPatchelf" ];
postPatchelf = ''
completions_dir=$(mktemp -d)
SHELL="bash" $out/bin/bun completions $completions_dir