diff --git a/lib/meta.nix b/lib/meta.nix index 5d5f71d6c3cb..c8e67cbc70e2 100644 --- a/lib/meta.nix +++ b/lib/meta.nix @@ -87,6 +87,10 @@ rec { We can inject these into a pattern for the whole of a structured platform, and then match that. + + Example: + lib.meta.platformMatch { system = "aarch64-darwin"; } "aarch64-darwin" + => true */ platformMatch = platform: elem: ( # Check with simple string comparison if elem was a string.