fix: import requires closures not finite argument lambdas
This commit is contained in:
parent
44f90fcffe
commit
29ee948574
8 changed files with 8 additions and 4 deletions
|
|
@ -2,6 +2,7 @@
|
||||||
std = import ./std {};
|
std = import ./std {};
|
||||||
parse = import ./parse {
|
parse = import ./parse {
|
||||||
attrs = std.attrs;
|
attrs = std.attrs;
|
||||||
|
lists = std.lists;
|
||||||
result = std.result;
|
result = std.result;
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
{
|
{
|
||||||
attrs,
|
attrs,
|
||||||
result,
|
result,
|
||||||
|
...
|
||||||
}: let
|
}: let
|
||||||
struct = import ./struct.nix {inherit attrs result;};
|
struct = import ./struct.nix {inherit attrs result;};
|
||||||
in
|
in
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
{
|
{
|
||||||
attrs,
|
attrs,
|
||||||
result,
|
result,
|
||||||
|
...
|
||||||
}: rec {
|
}: rec {
|
||||||
cmpStructErr' = errBadKeys: errBadValues: path: S: T:
|
cmpStructErr' = errBadKeys: errBadValues: path: S: T:
|
||||||
if builtins.isAttrs S && builtins.isAttrSet T
|
if builtins.isAttrs S && builtins.isAttrSet T
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
{lists}: rec {
|
{lists, ...}: rec {
|
||||||
nameValuePair = name: value: {inherit name value;};
|
nameValuePair = name: value: {inherit name value;};
|
||||||
|
|
||||||
identityAttrs = value: {${value} = value;};
|
identityAttrs = value: {${value} = value;};
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
{}: let
|
{...}: let
|
||||||
attrs = import ./attrs.nix {inherit lists;};
|
attrs = import ./attrs.nix {inherit lists;};
|
||||||
lists = import ./lists.nix {};
|
lists = import ./lists.nix {};
|
||||||
result = import ./lists.nix {inherit lists;};
|
result = import ./lists.nix {inherit lists;};
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
{}: rec {
|
{...}: rec {
|
||||||
foldl = op: nul: list: let
|
foldl = op: nul: list: let
|
||||||
foldl' = n:
|
foldl' = n:
|
||||||
if n == -1
|
if n == -1
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
{lists}: rec {
|
{lists, ...}: rec {
|
||||||
# Result Monad
|
# Result Monad
|
||||||
Ok = value: {
|
Ok = value: {
|
||||||
ok = true;
|
ok = true;
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
{
|
{
|
||||||
attrs,
|
attrs,
|
||||||
lists,
|
lists,
|
||||||
|
...
|
||||||
}: let
|
}: let
|
||||||
# === Internal Helper Functions ===
|
# === Internal Helper Functions ===
|
||||||
toSystemName = arch: platform: "${arch}-${platform}";
|
toSystemName = arch: platform: "${arch}-${platform}";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue