diff --git a/pkgs/development/web/bun/default.nix b/pkgs/development/web/bun/default.nix index 6e187aa3fe03..8e5250b5e1ef 100644 --- a/pkgs/development/web/bun/default.nix +++ b/pkgs/development/web/bun/default.nix @@ -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