Files
snowfall-lib/snowfall-lib/shell/default.nix
anntnzrb 3a0e52e0b9 fix(lib): accept extra snowfall args
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.
2026-03-16 14:30:34 -05:00

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"; });
};
}