diff options
author | Vincent Ambo <mail@tazj.in> | 2022-06-03T12·56+0000 |
---|---|---|
committer | clbot <clbot@tvl.fyi> | 2022-06-03T23·27+0000 |
commit | 6cfa6bb59e541175204b37ccb42baabfa7e49204 (patch) | |
tree | 3165357a46ab6c1d5d327c85cb28c2009d52b13d /default.nix | |
parent | 3cbe10c4f6b789d25c142eda0c760db60c2897b2 (diff) |
feat: Add top-level system parameter r/4207
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>
Diffstat (limited to 'default.nix')
-rw-r--r-- | default.nix | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/default.nix b/default.nix index 7cdf32bef977..f43e11bea370 100644 --- a/default.nix +++ b/default.nix @@ -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 |