gitignoreSource: ensure Nix store path determinism
This ensures that, when used in situations like `gitignoreSource ./.`, both Hydra and local checkout will have the exact same Nix path.
This commit is contained in:
parent
ec5dd0536a
commit
f7c8b7f8d1
1 changed files with 6 additions and 1 deletions
|
|
@ -4,5 +4,10 @@ let
|
|||
in
|
||||
{
|
||||
inherit (find-files) gitignoreFilter;
|
||||
gitignoreSource = p: lib.cleanSourceWith { filter = find-files.gitignoreFilter p; src = p; };
|
||||
|
||||
gitignoreSource = path: builtins.path {
|
||||
name = "source";
|
||||
filter = find-files.gitignoreFilter path;
|
||||
inherit path;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue