bun: fix cross-compilation (#347901)

This commit is contained in:
Sefa Eyeoglu
2024-10-21 22:36:42 +02:00
committed by GitHub
+2 -2
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