feat: Add top-level system parameter

This has come up a couple of times. This way system is passed to all
derivations. Maybe we can do something useful with it.

Change-Id: Ia7dfcffbc82abbd3128342a8971a3861865be713
Reviewed-on: https://cl.tvl.fyi/c/depot/+/5832
Tested-by: BuildkiteCI
Autosubmit: tazjin <tazjin@tvl.su>
Reviewed-by: sterni <sternenseemann@systemli.org>
This commit is contained in:
Vincent Ambo 2022-06-03 12:56:36 +00:00 committed by clbot
parent 3cbe10c4f6
commit 6cfa6bb59e

View file

@ -5,6 +5,7 @@
{ nixpkgsBisectPath ? null
, parentTargetMap ? null
, nixpkgsConfig ? { }
, localSystem ? builtins.currentSystem
, ...
}@args:
@ -74,6 +75,7 @@ let
in
readTree.fix (self: (readDepot {
inherit localSystem;
depot = self;
# Pass third_party as 'pkgs' (for compatibility with external