diff --git a/third_party/default.nix b/third_party/default.nix index 73b8374670..86d98c6fbd 100644 --- a/third_party/default.nix +++ b/third_party/default.nix @@ -43,7 +43,7 @@ let sha256 = "sha256:0qjyfmw5v7s6ynjns4a61vlyj9cghj7vbpgrp9147ngb1f8krz2c"; }; - tvlDepot = import ./tvl { nixpkgsBisectPath = ./nixpkgs; inherit nixpkgsConfig; }; + tvlDepot = import ./tvl { nixpkgsBisectPath = ./nixpkgs; inherit nixpkgsConfig; nixpkgsSystem = system; }; in rec { inherit nixpkgsConfig nixpkgs; diff --git a/third_party/tvl/default.nix b/third_party/tvl/default.nix index 7cdf32bef9..d11267d647 100644 --- a/third_party/tvl/default.nix +++ b/third_party/tvl/default.nix @@ -5,6 +5,7 @@ { nixpkgsBisectPath ? null , parentTargetMap ? null , nixpkgsConfig ? { } +, nixpkgsSystem ? builtins.currentSystem , ... }@args: diff --git a/third_party/tvl/third_party/nixpkgs/default.nix b/third_party/tvl/third_party/nixpkgs/default.nix index 3471468c4c..50bdcb8afe 100644 --- a/third_party/tvl/third_party/nixpkgs/default.nix +++ b/third_party/tvl/third_party/nixpkgs/default.nix @@ -47,6 +47,7 @@ import nixpkgsSrc { allowUnfree = true; allowBroken = true; }; + system = if externalArgs ? nixpkgsSystem then externalArgs.nixpkgsSystem else builtins.currentSystem; overlays = [ commitsOverlay