From 76f0bcd2ca2b95b846207bad8b359ebf93328968 Mon Sep 17 00:00:00 2001 From: Adam Joseph Date: Sun, 20 Aug 2023 21:22:02 -0700 Subject: [PATCH] default.nix: warn the user if they try to build the entire scope The `AAAAAASomeThingsBuildTooMuch` attrname is borrowed from a similar attribute in nixpkgs' `top-level/all-packages.nix`. --- src/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/default.nix b/src/default.nix index 6f6fd76..8f9fe82 100644 --- a/src/default.nix +++ b/src/default.nix @@ -9,6 +9,12 @@ let ownerboot = { overlays }: let base = final: prev: { + AAAAAASomeThingsBuildTooMuch = throw '' + Please don't try to `nix-build` the entire ownerboot scope; + there's a lot of stuff in it that need not be built for any + particular target. You probably want to add `.main` to your + `nix-build -A` argument. + ''; inherit hostPlatform; nixpkgsOnBuildForHost = pkgsFun (nixpkgsArgs