9.nix-gitignore/default.nix
Yegor Timoshenko f7c8b7f8d1
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.
2019-08-19 16:16:12 +00:00

13 lines
275 B
Nix

{ lib ? import <nixpkgs/lib> }:
let
find-files = import ./find-files.nix { inherit lib; };
in
{
inherit (find-files) gitignoreFilter;
gitignoreSource = path: builtins.path {
name = "source";
filter = find-files.gitignoreFilter path;
inherit path;
};
}