diff --git a/makePackages.nix b/makePackages.nix index 79b2d94..fb86874 100644 --- a/makePackages.nix +++ b/makePackages.nix @@ -34,29 +34,7 @@ let extra-deps = self: super: mapAttrs (resolveExtraDep self super) proj.extra-deps; - nixageFilter = name: type: - let - baseName = baseNameOf name; - inRoot = dirOf name == toString proj.root; - pkgStackWork = mapAttrsToList (_: locPath: locPath + "/.stack-work") proj.packages; - match = p: name == toString (proj.root + ("/" + p)); - matchDir = p: type == "directory" && match p; - in ! ( - matchDir ".stack-work" - || any matchDir pkgStackWork - || match "stack.yaml" - - || matchDir "dist" - || matchDir "dist-newstyle" - || inRoot && hasPrefix ".ghc.environment" baseName - || match "cabal.project" - || match "cabal.project.local" - ); - - projectSrc = cleanSourceWith { - filter = nixageFilter; - src = cleanSource proj.root; - }; + projectSrc = proj.root; mkLocalPackage = name: path: let