let
  fromEnv = var: def:
    let val = builtins.getEnv var; in
    if val != "" then val else def;
in rec {
  perl = "/nix/store/05aipb9ciqizqq6c43kq6q08jl35xr80-perl-5.24.3/bin/perl";
  shell = "/nix/store/4bjhvp25sfcil7752ipkj3ichg4l468s-bash-4.4-p12/bin/bash";
  coreutils = "/nix/store/55pgvia3w96a6kx4b5pzppaak1pny4y3-coreutils-8.28/bin";
  bzip2 = "/nix/store/vi9l3y3ds8iv1dhk0944np53awvgqls8-bzip2-1.0.6.0.1-bin/bin/bzip2";
  gzip = "/nix/store/zdm9bfqfa31n8fac0gb1jg56b61bi2pd-gzip-1.8/bin/gzip";
  xz = "/nix/store/dwal9idm0ypmn29nmw390f43rssbd09v-xz-5.2.3-bin/bin/xz";
  tar = "/nix/store/layi2drx8pcrglnz5v813lwm7h0ajwp0-gnutar-1.29/bin/tar";
  tarFlags = "--warning=no-timestamp";
  tr = "/nix/store/55pgvia3w96a6kx4b5pzppaak1pny4y3-coreutils-8.28/bin/tr";
  nixBinDir = fromEnv "NIX_BIN_DIR" "/nix/store/ifmyq5ryfxhhrzh62hiq65xyz1fwffga-nix-1.11.16/bin";
  nixPrefix = "/nix/store/ifmyq5ryfxhhrzh62hiq65xyz1fwffga-nix-1.11.16";

  # If Nix is installed in the Nix store, then automatically add it as
  # a dependency to the core packages. This ensures that they work
  # properly in a chroot.
  chrootDeps =
    if dirOf nixPrefix == builtins.storeDir then
      [ (builtins.storePath nixPrefix) ]
    else
      [ ];
}
