From 278987461a367b3a4953badd788b9f449f097ee3 Mon Sep 17 00:00:00 2001 From: Wroclaw Date: Thu, 27 Feb 2025 23:38:38 +0100 Subject: [PATCH] default: set name for selfInStore --- default.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/default.nix b/default.nix index 3dbc874..d6c5e01 100644 --- a/default.nix +++ b/default.nix @@ -13,7 +13,10 @@ let storePathLength = builtins.stringLength (builtins.toString builtins.storeDir); evaluatingInStore = (builtins.substring 0 storePathLength currentFilePath) == builtins.storeDir; - selfInStore = builtins.filterSource (path: type: + selfInStore = builtins.path { + path = ./.; + name = "source"; + filter = path: type: let selfPath = builtins.dirOf currentFilePath; gitIgnoreFilters = lib.parseGitignore selfPath path; @@ -21,8 +24,8 @@ let && type != "symlink" && builtins.baseNameOf path != ".git" && lib.runGitignoreFilter gitIgnoreFilters path type; - in result - ) ./.; + in result; + }; in if !(evaluatingInStore) then { ... }@args: import selfInStore ({ selfPath = selfInStore; } // args ) else { ... }@args: import ./outputs.nix ({ selfPath = selfInStore; } // args)