about summary refs log tree commit diff
path: root/lib/systems/default.nix
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2020-11-28 20:55:55 +0000
committerJohn Ericson <John.Ericson@Obsidian.Systems>2020-11-29 00:03:45 +0000
commit40e7be11c8098d11217786d106462e958e1d8718 (patch)
tree1c700db2a66a3003408515bbc54b754c2f365697 /lib/systems/default.nix
parent947f27fd0f1597c257a28fe9992abce1baa8fc84 (diff)
lib.systems.platforms: Make selection more flexible
We dont have to match on exact strings if we get accessed to `parsed`.

Co-authored-by: Matthew Bauer <mjbauer95@gmail.com>
Diffstat (limited to 'lib/systems/default.nix')
-rw-r--r--lib/systems/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/systems/default.nix b/lib/systems/default.nix
index 9939743157e78..f6832945a23dc 100644
--- a/lib/systems/default.nix
+++ b/lib/systems/default.nix
@@ -25,7 +25,7 @@ rec {
       system = parse.doubleFromSystem final.parsed;
       config = parse.tripleFromSystem final.parsed;
       # Just a guess, based on `system`
-      platform = platforms.selectBySystem final.system;
+      platform = platforms.select final;
       # Determine whether we are compatible with the provided CPU
       isCompatible = platform: parse.isCompatible final.parsed.cpu platform.parsed.cpu;
       # Derived meta-data