From 312ad5d16cbf167174d8bac97e036e96f5f1e674 Mon Sep 17 00:00:00 2001 From: Skyler Grey Date: Fri, 21 Jun 2024 21:31:39 +0000 Subject: [PATCH] fix: make system-lib imports use namespaces 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 --- snowfall-lib/internal/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snowfall-lib/internal/default.nix b/snowfall-lib/internal/default.nix index be5503c..66d415e 100644 --- a/snowfall-lib/internal/default.nix +++ b/snowfall-lib/internal/default.nix @@ -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 =