From 7fea2bdc456f9d5a0b827f23706fc414d986adcb Mon Sep 17 00:00:00 2001 From: sterni Date: Sat, 4 Jun 2022 01:35:52 +0200 Subject: fix(3p/nixpkgs): pass localSystem from depot to nixpkgs Change-Id: I75d2ad14ebc81a76cfa7c8d83e77b4a124b03466 Reviewed-on: https://cl.tvl.fyi/c/depot/+/5846 Autosubmit: sterni Tested-by: BuildkiteCI Reviewed-by: tazjin --- third_party/nixpkgs/default.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'third_party') diff --git a/third_party/nixpkgs/default.nix b/third_party/nixpkgs/default.nix index 3471468c4c..4007d00f9d 100644 --- a/third_party/nixpkgs/default.nix +++ b/third_party/nixpkgs/default.nix @@ -8,7 +8,12 @@ # in //default.nix passes this attribute as the `pkgs` argument to all # readTree derivations. -{ depot ? { }, externalArgs ? { }, depotOverlays ? true, ... }: +{ depot ? { } +, externalArgs ? { } +, depotOverlays ? true +, localSystem ? builtins.currentSystem +, ... +}: let # import the nixos-unstable package set, or optionally use the @@ -48,6 +53,8 @@ import nixpkgsSrc { allowBroken = true; }; + inherit localSystem; + overlays = [ commitsOverlay stableOverlay -- cgit 1.4.1