Skip to content

Commit

Permalink
fix: make system-lib imports use namespaces
Browse files Browse the repository at this point in the history
Previously when you accessed stuff on your lib via snowfall-lib's
internal system-lib (e.g. with lib.snowfall.internal.system-lib.my-namespace.my-lib-function)
the lib which is passed to *your* lib used hardcoded the "internal" name

This makes lib functions in your flake's lib break if they use other lib
functions in your flake's lib
  • Loading branch information
Minion3665 committed Jun 21, 2024
1 parent aa19b02 commit 312ad5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion snowfall-lib/internal/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
namespace = snowfall-config.namespace;
lib = snowfall-lib.attrs.merge-shallow [
base-lib
{internal = user-lib;}
{"${snowfall-config.namespace}" = user-lib;}
];
};
libs =
Expand Down

0 comments on commit 312ad5d

Please sign in to comment.