48a80dfea0
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
33 lines
939 B
Nix
33 lines
939 B
Nix
# Externally importable TVL depot stack. This is intended to be called
|
|
# with a supplied package set, otherwise the package set currently in
|
|
# use by the TVL depot will be used.
|
|
#
|
|
# For now, readTree is not used inside of this configuration to keep
|
|
# it simple. Adding it may be useful if we set up test scaffolding
|
|
# around the exported workspace.
|
|
|
|
{ pkgs ? (import ./nixpkgs {
|
|
depotOverlays = false;
|
|
depot.third_party.sources = import ./sources { };
|
|
externalArgs = args;
|
|
})
|
|
, ...
|
|
}@args:
|
|
|
|
pkgs.lib.fix (self: {
|
|
besadii = import ./besadii {
|
|
depot.nix.buildGo = self.buildGo;
|
|
};
|
|
|
|
buildGo = import ./buildGo { inherit pkgs; };
|
|
|
|
buildkite = import ./buildkite {
|
|
inherit pkgs;
|
|
depot.nix.readTree = self.readTree;
|
|
};
|
|
|
|
checks = import ./checks { inherit pkgs; };
|
|
lazy-deps = import ./lazy-deps { inherit pkgs; };
|
|
magrathea = import ./magrathea { inherit pkgs; };
|
|
readTree = import ./readTree { };
|
|
})
|