From 0bfa3550e7012679c72392c937c43fdf515fb208 Mon Sep 17 00:00:00 2001 From: Artturin Date: Tue, 10 Dec 2024 19:51:36 +0200 Subject: [PATCH] Return cross pkgs only on x86_64-linux or aarch64-linux for testing because of https://gist.github.com/GrahamcOfBorg/aa78dac437d7e9d77fb47cd8142615c7 --- pkgs/top-level/impure.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/top-level/impure.nix b/pkgs/top-level/impure.nix index 463de791a1a650..7f0099b254f0f8 100644 --- a/pkgs/top-level/impure.nix +++ b/pkgs/top-level/impure.nix @@ -86,5 +86,6 @@ assert args ? system -> !(args ? localSystem); import ./. (builtins.removeAttrs args [ "system" ] // { inherit config overlays localSystem; +} // (if ((localSystem.system or localSystem) == "x86_64-linux" || (localSystem.system or localSystem) == "aarch64-linux") then { crossSystem = { config = "aarch64-unknown-linux-gnu"; }; -}) + } else {}) )