Skip to content

Instantly share code, notes, and snippets.

@samueldr
Created November 30, 2019 20:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samueldr/5e4777452266021e3711e064f45864e7 to your computer and use it in GitHub Desktop.
Save samueldr/5e4777452266021e3711e064f45864e7 to your computer and use it in GitHub Desktop.
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