From e1e3ca54eb564ccb372797c20037655b61cf675a Mon Sep 17 00:00:00 2001 From: Colton Donnelly Date: Tue, 27 Feb 2024 14:48:53 -0500 Subject: [PATCH] lib.meta.platformMatch: expand documentation --- lib/meta.nix | 4 ++++ 1 file changed, 4 insertions(+) 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.