From 6cfa6bb59e541175204b37ccb42baabfa7e49204 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Fri, 3 Jun 2022 12:56:36 +0000 Subject: 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 Reviewed-by: sterni --- default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/default.nix b/default.nix index 7cdf32bef9..f43e11bea3 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 -- cgit 1.4.1