This ensures that, when used in situations like `gitignoreSource ./.`, both Hydra and local checkout will have the exact same Nix path.
13 lines
275 B
Nix
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;
|
|
};
|
|
}
|