about summary refs log tree commit diff
path: root/views
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2023-03-03T13·39+0100
committerflokli <flokli@flokli.de>2023-03-03T14·56+0000
commit48a80dfea0466e75fed77e5b27e7f7668e371dd0 (patch)
tree5e0cabd9710b9b6bc8d951f3ca01e943a519676e /views
parent774194652b57f47197e270c62dabf863e7aa8241 (diff)
fix(views/kit): allow setting localSystem when using tvl-kit r/5873
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 <tazjin@tvl.su>
Tested-by: BuildkiteCI
Diffstat (limited to 'views')
-rw-r--r--views/kit/default.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/views/kit/default.nix b/views/kit/default.nix
index b2ff2a595f..4e7e5955aa 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 {