mirror of
https://github.com/mjallen18/snowfall-lib.git
synced 2026-04-18 17:15:57 -05:00
refactor: remove rec keyword across codebase
Replace rec keyword with modern Nix patterns: - Use explicit let...in bindings with inherit statements - Use fix for recursive package bindings in package/default.nix - This improves maintainability and follows idiomatic Nix patterns Files modified: - snowfall-lib/flake/default.nix - snowfall-lib/fp/default.nix - snowfall-lib/home/default.nix - snowfall-lib/system/default.nix - snowfall-lib/package/default.nix
This commit is contained in:
@@ -18,8 +18,8 @@ let
|
||||
traceVal
|
||||
;
|
||||
in
|
||||
rec {
|
||||
flake = rec {
|
||||
let
|
||||
flake = let
|
||||
## Remove the `self` attribute from an attribute set.
|
||||
## Example Usage:
|
||||
## ```nix
|
||||
@@ -43,6 +43,8 @@ rec {
|
||||
## ```
|
||||
#@ Attrs -> Attrs
|
||||
without-src = flake-inputs: builtins.removeAttrs flake-inputs [ "src" ];
|
||||
in {
|
||||
inherit without-self without-src;
|
||||
|
||||
## Remove the `src` and `self` attributes from an attribute set.
|
||||
## Example Usage:
|
||||
@@ -248,4 +250,7 @@ rec {
|
||||
}) (builtins.attrNames flake-outputs.pkgs)
|
||||
));
|
||||
};
|
||||
in
|
||||
{
|
||||
inherit flake mkFlake;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user