From e663518d18e7dedce127edc26888fd997e6c1e73 Mon Sep 17 00:00:00 2001 From: Adam Joseph Date: Thu, 14 Apr 2022 10:16:36 -0700 Subject: [PATCH] all-packages.nix: add bootstrapTools to top-level.nix This allows us to summon ofborg like this: @ofborg build pkgsCross.aarch64-multiplatform.stdenvBootstrapTools.build --- pkgs/top-level/all-packages.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index f232122938e..6d1d5524122 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1584,6 +1584,14 @@ with pkgs; brewtarget = libsForQt514.callPackage ../applications/misc/brewtarget { } ; + stdenvBootstrapTools = + let args = { crossSystem = stdenv.hostPlatform.system; }; in + if stdenv.hostPlatform.isDarwin + then callPackage ../stdenv/darwin/make-bootstrap-tools.nix args + else if stdenv.hostPlatform.isLinux + then callPackage ../stdenv/linux/make-bootstrap-tools.nix args + else throw "stdenvBootstrapTools: unknown hostPlatform ${stdenv.hostPlatform.config}"; + boxes = callPackage ../tools/text/boxes { }; boundary = callPackage ../tools/networking/boundary { };