-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
I'm currently using cleanSourceWith like:
let srcFilter = path: type:
let
p = baseNameOf path;
in
!(
# ignore CI directories
(type == "directory" && (p == ".github" || p == "ci")) ||
# ignore CI files
p == ".travis.yml" || p == "cloudbuild.yaml" ||
# ignore flake.(nix|lock)
p == "flake.nix" || p == "flake.lock" ||
# ignore docker files
p == ".dockerignore" || p == "docker-compose.yml" ||
# ignore misc
p == "rustfmt.toml"
);
# ...
src = pkgs.lib.cleanSourceWith {
src = ./.;
filter = srcFilter;
name = "foo-source";
};What is the advantage of using nix-filter?
Metadata
Metadata
Assignees
Labels
No labels