Merge pull request #11 from transumption-unstable/gitignore-source-name

gitignoreSource: ensure Nix store path determinism
This commit is contained in:
Domen Kožar 2019-08-19 18:58:55 +02:00 committed by GitHub
commit 6e7569637d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
};
}