bun: fix cross-compilation

This commit is contained in:
FliegendeWurst 2024-10-11 12:51:30 +02:00
parent 322eb94b18
commit b51e2591bc

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