outputs: remove selfPath, but use that method in selfExpr default

by stringifying ./. then appending path, nix adds selfPath (nix-store path) to gcroot of selfPath derivation
This commit is contained in:
Wroclaw 2024-06-20 19:33:16 +02:00
parent 9e59fd06af
commit 19c4cb4c2f
2 changed files with 4 additions and 6 deletions

View file

@ -25,7 +25,7 @@ self: super: {
in ''
{ ... } @ args:
import ${builtins.toString nixpkgsPath} {
import ${nixpkgsPath} {
${self.lib.optionalString useConfig configText}
} // builtins.removeAttrs args (builtins.fromJSON '''
${removedAttrNamesText}