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, ...}:
|
{nib, ...}:
|
||||||
with builtins nib.types; rec {
|
with builtins;
|
||||||
|
with nib.types; rec {
|
||||||
cmpStructErr' = errBadKeys: errBadValues: path: S: T:
|
cmpStructErr' = errBadKeys: errBadValues: path: S: T:
|
||||||
if isAttrs S && isAttrs T
|
if isAttrs S && isAttrs T
|
||||||
then let
|
then let
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,13 @@
|
||||||
{nib, ...}:
|
{nib, ...}:
|
||||||
|
with builtins;
|
||||||
with nib.types; let
|
with nib.types; let
|
||||||
# === Internal Helper Functions ===
|
# === Internal Helper Functions ===
|
||||||
toSystemName = arch: platform: "${arch}-${platform}";
|
toSystemName = arch: platform: "${arch}-${platform}";
|
||||||
listsToSystemNames = archs: platforms:
|
listsToSystemNames = archs: platforms:
|
||||||
crossLists (arch: platform: toSystemName arch platform)
|
crossLists (arch: platform: toSystemName arch platform)
|
||||||
[
|
[
|
||||||
(builtins.attrValues archs)
|
(attrValues archs)
|
||||||
(builtins.attrValues platforms)
|
(attrValues platforms)
|
||||||
];
|
];
|
||||||
in rec {
|
in rec {
|
||||||
# REF: https://github.com/nix-systems/nix-systems
|
# REF: https://github.com/nix-systems/nix-systems
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue