From 1d02f7fae4f0f3d501980dfd6677177b028bec22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleix=20Bon=C3=A9?= Date: Fri, 6 Mar 2026 12:44:54 +0100 Subject: [PATCH] Remove nix-portable tmpbin feature It will not work without the host /lib64/ld Reviewed-by: Rodrigo Arias Mallo --- pkgs/nix-portable/default.nix | 9 --------- 1 file changed, 9 deletions(-) diff --git a/pkgs/nix-portable/default.nix b/pkgs/nix-portable/default.nix index 10cbffa8..4086069f 100644 --- a/pkgs/nix-portable/default.nix +++ b/pkgs/nix-portable/default.nix @@ -179,10 +179,6 @@ let store="\$dir/nix/store" # create /nix/var/nix to prevent nix from falling back to chroot store. mkdir -p \$dir/{bin,nix/var/nix,nix/store} - # sanitize the tmpbin directory - rm -rf "\$dir/tmpbin" - # create a directory to hold executable symlinks for overriding - mkdir -p "\$dir/tmpbin" # create minimal drv file for nix to spawn a nix shell echo 'builtins.derivation {name="foo"; builder="/bin/sh"; args = ["-c" "echo hello \> \\\$out"]; system=builtins.currentSystem;}' > "\$dir/mini-drv.nix" @@ -575,11 +571,6 @@ let ### set PATH # restore original PATH and append busybox export PATH="\$PATH_OLD:\$dir/busybox/bin" - # apply overriding executable paths in \$dir/tmpbin/ - export PATH="\$dir/tmpbin:\$PATH" - - - ### install programs via nix ${concatMapStringsSep "\n" installDynamic bootstrapPrograms}