···4747 inherit bootBinutils coreutilsMinimal tarMinimal busyboxMinimal bootGCC libc patchelf;
4848 };
49495050- bootstrapFiles = {
5151- # Make them their own store paths to test that busybox still works when the binary is named /nix/store/HASH-busybox
5252- busybox = runCommand "busybox" {} "cp ${build}/on-server/busybox $out";
5353- bootstrapTools = runCommand "bootstrap-tools.tar.xz" {} "cp ${build}/on-server/bootstrap-tools.tar.xz $out";
5454- };
5050+ inherit (build) bootstrapFiles;
55515652 bootstrapTools =
5753 let extraAttrs = lib.optionalAttrs
+13-2
pkgs/stdenv/linux/stdenv-bootstrap-tools.nix
···2323 mpfr,
2424 patch,
2525 patchelf,
2626+ runCommand,
2627 tarMinimal,
2728 zlib,
2829}:
···3031 # ${libc.src}/sysdeps/unix/sysv/linux/loongarch/lp64/libnsl.abilist does not exist!
3132 withLibnsl = !stdenv.hostPlatform.isLoongArch64;
3233in
3333-stdenv.mkDerivation {
3434+stdenv.mkDerivation (finalAttrs: {
3435 name = "stdenv-bootstrap-tools";
35363637 meta = {
···208209 # that we can safely copy them out of the store and to other
209210 # locations in the store.
210211 allowedReferences = [ ];
211211-}
212212+213213+ passthru = {
214214+ bootstrapFiles = {
215215+ # Make them their own store paths to test that busybox still works when the binary is named /nix/store/HASH-busybox
216216+ busybox = runCommand "busybox" { } "cp ${finalAttrs.finalPackage}/on-server/busybox $out";
217217+ bootstrapTools =
218218+ runCommand "bootstrap-tools.tar.xz" { }
219219+ "cp ${finalAttrs.finalPackage}/on-server/bootstrap-tools.tar.xz $out";
220220+ };
221221+ };
222222+})