{ pkgs }: let source = (import ../hooks.nix { inherit pkgs; }).src; excluded = [ ".env" ".env.local" ".env.production" "nested/.env" ".direnv" ]; included = [ ".envrc" "README.md" "internal/config/config.go" ]; in assert pkgs.lib.all (name: !source.filter "/fixture/${name}" "regular") excluded; assert pkgs.lib.all (name: source.filter "/fixture/${name}" "regular") included; assert !source.filter "/fixture/.env" "symlink"; assert !source.filter "/fixture/.direnv" "directory"; assert !builtins.pathExists "${source}/.env"; assert !builtins.pathExists "${source}/.direnv"; assert builtins.pathExists "${source}/README.md"; pkgs.runCommand "provenance-source-filter-check" { } '' touch "$out" ''