From 48a80dfea0466e75fed77e5b27e7f7668e371dd0 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Fri, 3 Mar 2023 14:39:28 +0100 Subject: fix(views/kit): allow setting localSystem when using tvl-kit Because the passing around of externalArgs only happened in the readTree instantiation in the repo root default.nix, but not in views/kit/ default.nix, it was not possible to get tvl-kit to instantiate the bundled nixpkgs with a custom system. This fixes invocations like ``` tvl-kit = import (sources.tvl-kit) { localSystem = "aarch64-linux"; }; ``` Change-Id: I3a633e4d695d266459400ba74fc0693ecc5bfb54 Reviewed-on: https://cl.tvl.fyi/c/depot/+/8197 Reviewed-by: tazjin Tested-by: BuildkiteCI --- views/kit/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/views/kit/default.nix b/views/kit/default.nix index b2ff2a595f72..4e7e5955aa74 100644 --- a/views/kit/default.nix +++ b/views/kit/default.nix @@ -9,9 +9,10 @@ { pkgs ? (import ./nixpkgs { depotOverlays = false; depot.third_party.sources = import ./sources { }; + externalArgs = args; }) , ... -}: +}@args: pkgs.lib.fix (self: { besadii = import ./besadii { -- cgit 1.4.1