I wish #nix #nixpkgs had built in hints in the files that indicated a minimum amount of memory to build a package; so could warn you and abort if you likely don't have enough memory to build it, or if you have multiple machines doing builds, it could keep track of the memory load vs required memory of each build and assign based on that, because a build hitting swap is a build that runs like shit.
@krutonium using extra cachix addresses helps. For example, when I’m building Haskell projects, IOHK’s cache is invaluable unless you literally want to build GHC from scratch.
@harryprayiv I've got a local cache for caching builds but I'm doing stuff like, right now, rebuilding everything with a newer SDL3 version that supports the steam controller natively.
@krutonium Carry on, badass. 🤘
@harryprayiv But yeah that's why I wish I could tell it to choose builders based on expected memory load... I'd throw my laptop and such into the mix if it wouldn't immediately get OOM'd, have it do smaller jobs.
@krutonium maybe a Talos cluster could be a solution.