From 8e008614f7587fb7cd033d57f51b6401d7e768a3 Mon Sep 17 00:00:00 2001 From: Emile Clark-Boman Date: Sun, 14 Dec 2025 13:21:46 +1000 Subject: [PATCH] fix: with syntax sucks --- nib/parse/struct.nix | 3 ++- nib/sys/default.nix | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/nib/parse/struct.nix b/nib/parse/struct.nix index 93feae7..5d54ac8 100644 --- a/nib/parse/struct.nix +++ b/nib/parse/struct.nix @@ -1,5 +1,6 @@ {nib, ...}: -with builtins nib.types; rec { +with builtins; +with nib.types; rec { cmpStructErr' = errBadKeys: errBadValues: path: S: T: if isAttrs S && isAttrs T then let diff --git a/nib/sys/default.nix b/nib/sys/default.nix index 36e7e9a..d05d9f7 100644 --- a/nib/sys/default.nix +++ b/nib/sys/default.nix @@ -1,12 +1,13 @@ {nib, ...}: +with builtins; with nib.types; let # === Internal Helper Functions === toSystemName = arch: platform: "${arch}-${platform}"; listsToSystemNames = archs: platforms: crossLists (arch: platform: toSystemName arch platform) [ - (builtins.attrValues archs) - (builtins.attrValues platforms) + (attrValues archs) + (attrValues platforms) ]; in rec { # REF: https://github.com/nix-systems/nix-systems