From b51e2591bcbf94f92ec2643d7ac7961a442aaa60 Mon Sep 17 00:00:00 2001 From: FliegendeWurst <2012gdwu+github@posteo.de> Date: Fri, 11 Oct 2024 12:51:30 +0200 Subject: [PATCH] bun: fix cross-compilation --- pkgs/development/web/bun/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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