Skip to content

Commit

Permalink
Merge pull request #11 from transumption-unstable/gitignore-source-name
Browse files Browse the repository at this point in the history
gitignoreSource: ensure Nix store path determinism
  • Loading branch information
domenkozar authored Aug 19, 2019
2 parents ec5dd05 + f7c8b7f commit 6e75696
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
}

0 comments on commit 6e75696

Please sign in to comment.