mirror of
https://github.com/mjallen18/snowfall-lib.git
synced 2026-04-18 09:05:58 -05:00
Snowfall mkLib/mkFlake imports all submodules with a shared argument set, so narrow lambdas crash when snowfall-config is present. Allow extra args and add an evaluation check to catch regressions during flake checks.
21 lines
509 B
Nix
21 lines
509 B
Nix
{
|
|
snowfall-lib,
|
|
...
|
|
}:
|
|
{
|
|
shell = {
|
|
## Create flake output shells.
|
|
## Example Usage:
|
|
## ```nix
|
|
## create-shells { inherit channels; src = ./my-shells; overrides = { inherit another-shell; }; alias = { default = "another-shell"; }; }
|
|
## ```
|
|
## Result:
|
|
## ```nix
|
|
## { another-shell = ...; my-shell = ...; default = ...; }
|
|
## ```
|
|
#@ Attrs -> Attrs
|
|
create-shells =
|
|
args: snowfall-lib.internal.create-simple-derivations (args // { type = "shells"; });
|
|
};
|
|
}
|