From 9c0a3417c8defd0b5f4b592659c88c978f8b36b6 Mon Sep 17 00:00:00 2001
From: Adam Joseph <54836058+amjoseph-nixpkgs@users.noreply.github.com>
Date: Fri, 27 Jan 2023 11:56:20 +0000
Subject: [PATCH] Update lib/systems/inspect.nix
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Co-authored-by: Naïm Favier <n@monade.li>
---
 lib/systems/inspect.nix | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/systems/inspect.nix b/lib/systems/inspect.nix
index 104b735826b1..f823989f83ec 100644
--- a/lib/systems/inspect.nix
+++ b/lib/systems/inspect.nix
@@ -97,7 +97,7 @@ rec {
   # that `lib.meta.availableOn` can distinguish them from the patterns which
   # apply only to the `parsed` field.
 
-  platformPatterns = {
-    isStatic = { parsed = {}; isStatic = true; };
+  platformPatterns = mapAttrs (_: p: { parsed = {}; } // p) {
+    isStatic = { isStatic = true; };
   };
 }