fix: with syntax sucks
This commit is contained in:
parent
600cac3ce3
commit
8e008614f7
2 changed files with 5 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue