nixpkgs/pkgs/srcNoTarget.nix

4 lines
105 B
Nix

dir:
builtins.filterSource
(path: type: type != "directory" || builtins.baseNameOf path != "target") dir