From 8f3efbde4e5d5d5f6af97e8f7e199f37d51d9faa Mon Sep 17 00:00:00 2001 From: arcnmx Date: Wed, 9 Sep 2020 11:56:52 -0700 Subject: Fix arch eval error introduced in #61019 This occurs when using a `platform.gcc.arch` that isn't one of the pre-existing hard-coded options. --- lib/systems/architectures.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/systems/architectures.nix b/lib/systems/architectures.nix index 9d1c29fd9f0..bfecaec1ae8 100644 --- a/lib/systems/architectures.nix +++ b/lib/systems/architectures.nix @@ -60,7 +60,7 @@ rec { }; predicates = let - featureSupport = feature: x: builtins.elem feature features.${x}; + featureSupport = feature: x: builtins.elem feature features.${x} or []; in { sse3Support = featureSupport "sse3"; ssse3Support = featureSupport "ssse3"; -- cgit 1.4.1