Remove dependency on coreutils from bootstrap

The Nix distribution tarball no longer includes coreutils.
This commit is contained in:
Zhaofeng Li 2022-09-12 18:11:44 -06:00 committed by Alexander Sosedkin
parent 6a97d9e697
commit dd0d1194a8
3 changed files with 10 additions and 10 deletions

View file

@ -14,7 +14,6 @@ runCommand "bootstrap" { } ''
chmod --recursive u+w $out/nix
ln --symbolic ${packageInfo.bash}/bin/sh $out/bin/sh
ln --symbolic ${packageInfo.coreutils}/bin/env $out/usr/bin/env
install -D -m 0755 ${prootTermux}/bin/proot-static $out/bin/proot-static

View file

@ -36,8 +36,6 @@ stdenv.mkDerivation {
CACERT=$(find ${buildRootDirectory}/nix/store -path '*-nss-cacert-*/ca-bundle.crt' | sed 's,^${buildRootDirectory},,')
PKG_BASH=$(find ${buildRootDirectory}/nix/store -path '*/bin/bash' | sed 's,^${buildRootDirectory},,')
PKG_BASH=''${PKG_BASH%/bin/bash}
PKG_COREUTILS=$(find ${buildRootDirectory}/nix/store -path '*/bin/env' | sed 's,^${buildRootDirectory},,')
PKG_COREUTILS=''${PKG_COREUTILS%/bin/env}
PKG_NIX=$(find ${buildRootDirectory}/nix/store -path '*/bin/nix' | sed 's,^${buildRootDirectory},,')
PKG_NIX=''${PKG_NIX%/bin/nix}
@ -53,7 +51,6 @@ stdenv.mkDerivation {
{
bash = "$PKG_BASH";
cacert = "$CACERT";
coreutils = "$PKG_COREUTILS";
nix = "$PKG_NIX";
}
EOF