summaryrefslogtreecommitdiffstats
path: root/lib/meta.nix
diff options
context:
space:
mode:
authorAdam Joseph <adam@westernsemico.com>2023-01-27 01:49:39 -0800
committerAdam Joseph <adam@westernsemico.com>2023-01-27 01:49:39 -0800
commit778419b9e6e9d82d5801b382070a81169f5920ca (patch)
tree8f37f422fdd8d49be109f7c884e2df49ead8a69e /lib/meta.nix
parent682190354007a5cc8d0490c4d649f549da5a66e5 (diff)
Revert "lib/meta.nix: platformMatch: allow predicate functions"
Diffstat (limited to 'lib/meta.nix')
-rw-r--r--lib/meta.nix7
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/meta.nix b/lib/meta.nix
index cdd3e1d596c0..62894aeb316b 100644
--- a/lib/meta.nix
+++ b/lib/meta.nix
@@ -78,15 +78,10 @@ rec {
2. (modern) a pattern for the platform `parsed` field.
- 3. (functional) a predicate function returning a boolean.
-
We can inject these into a pattern for the whole of a structured platform,
and then match that.
*/
- platformMatch = platform: elem:
- if builtins.isFunction elem
- then elem platform
- else let
+ platformMatch = platform: elem: let
pattern =
if builtins.isString elem
then { system = elem; }