-
-
Save samueldr/5e4777452266021e3711e064f45864e7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/modules/system-target.nix b/modules/system-target.nix | |
index a0ad63c2c262..16b796c09e22 100644 | |
--- a/modules/system-target.nix | |
+++ b/modules/system-target.nix | |
@@ -39,27 +39,6 @@ in | |
}; | |
config = { | |
- assertions = [ | |
- { | |
- assertion = pkgs.targetPlatform.system == cfg.system; | |
- message = "pkgs.targetPlatform.system expected to be `${cfg.system}`, is `${pkgs.targetPlatform.system}`"; | |
- } | |
- ]; | |
- | |
- nixpkgs.crossSystem = lib.mkIf | |
- ( | |
- let | |
- result = selectedPlatform.system != builtins.currentSystem; | |
- in | |
- builtins.trace | |
- "Building with crossSystem?: ${selectedPlatform.system} != ${builtins.currentSystem} → ${if result then "we are" else "we're not"}." | |
- result | |
- ) | |
- ( | |
- builtins.trace | |
- " crossSystem: config: ${selectedPlatform.config}" | |
- selectedPlatform | |
- ) | |
- ; | |
+ nixpkgs.localSystem = selectedPlatform; | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment