From 68a5a2eecfc083dbb183c575e61c6271486160b3 Mon Sep 17 00:00:00 2001 From: Pacman99 Date: Thu, 25 Mar 2021 20:42:47 -0700 Subject: [PATCH] lib/pathsToImportedAttrs: discard string context in the names to prevent flake check error --- lib/attrs.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/attrs.nix b/lib/attrs.nix index 534a9918..242f66df 100644 --- a/lib/attrs.nix +++ b/lib/attrs.nix @@ -21,7 +21,9 @@ rec { paths' = lib.filter (lib.hasSuffix ".nix") paths; in genAttrs' paths' (path: { - name = lib.removeSuffix ".nix" (baseNameOf path); + name = lib.removeSuffix ".nix" + # Safe as long this is just used as a name + (builtins.unsafeDiscardStringContext (baseNameOf path)); value = import path; });