Move src filter into redo.getSrc.
parent
e6729e269f
commit
7405c29521
11
builder.nix
11
builder.nix
|
@ -12,7 +12,12 @@ let
|
||||||
with builtins;
|
with builtins;
|
||||||
let
|
let
|
||||||
# Funktionalise pkgs; our main entry point to resolve default*nix build scripts.
|
# Funktionalise pkgs; our main entry point to resolve default*nix build scripts.
|
||||||
funcPkgs = { __functor = self: arg: resolve arg; } // pkgs;
|
getSrc = filterSource
|
||||||
|
(path: type: baseNameOf path != ".git" && baseNameOf path != ".envrc" && (all (x: path != x) filter));
|
||||||
|
funcPkgs = {
|
||||||
|
__functor = self: arg: resolve arg;
|
||||||
|
redo.getSrc = getSrc;
|
||||||
|
} // pkgs;
|
||||||
|
|
||||||
_builder = let
|
_builder = let
|
||||||
imported = (tryEval (let
|
imported = (tryEval (let
|
||||||
|
@ -22,9 +27,7 @@ let
|
||||||
in if imported.success
|
in if imported.success
|
||||||
then imported.value
|
then imported.value
|
||||||
else {
|
else {
|
||||||
src = filterSource
|
src = getSrc (/. + root);
|
||||||
(path: type: baseNameOf path != ".git" && baseNameOf path != ".envrc" && (all (x: path != x) filter))
|
|
||||||
(/. + root);
|
|
||||||
builder = let
|
builder = let
|
||||||
relPath = dirOf (removePrefix (root + "/") builder);
|
relPath = dirOf (removePrefix (root + "/") builder);
|
||||||
in ''
|
in ''
|
||||||
|
|
Loading…
Reference in New Issue