From ccaaeb0d2f6c2fa5355e83488503c5fffc3028a9 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 --- 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 80d1869f..d559f692 100644 --- a/pkgs/nix-portable/default.nix +++ b/pkgs/nix-portable/default.nix @@ -181,10 +181,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" @@ -578,11 +574,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}