@@ -192,11 +192,11 @@ in {
192 collectChecks' = collectChecks (_: true);
192 collectChecks' = collectChecks (_: true);
194 # Replacement for lib.cleanSourceWith that has a subDir argument.
194 # Replacement for lib.cleanSourceWith that has a subDir argument.
195− inherit (import ./clean-source-with.nix { inherit lib; }) cleanSourceWith canCleanSource;
195+ inherit (import ./clean-source-with.nix { inherit lib; }) cleanSourceWith;
197 # Use cleanSourceWith to filter just the files needed for a particular
197 # Use cleanSourceWith to filter just the files needed for a particular
198 # component of a package
198 # component of a package
199− cleanCabalComponent = import ./clean-cabal-component.nix { inherit lib cleanSourceWith canCleanSource; };
199+ cleanCabalComponent = import ./clean-cabal-component.nix { inherit lib cleanSourceWith; };
201 # Clean git directory based on `git ls-files --recurse-submodules`
201 # Clean git directory based on `git ls-files --recurse-submodules`
202 cleanGit = import ./clean-git.nix {
202 cleanGit = import ./clean-git.nix {
@@ -290,26 +290,9 @@ in {
290 if subDir == ""
290 if subDir == ""
293− if haskellLib.canCleanSource src
294− then haskellLib.cleanSourceWith {
293+ haskellLib.cleanSourceWith {
295− inherit src subDir includeSiblings;
294+ inherit src subDir includeSiblings;
297− else let name = src.name or "source" + "-" + __replaceStrings ["/"] ["-"] subDir;
298− in if includeSiblings
300− # Keep `src.origSrc` so it can be used to allow references
301− # to other parts of that root.
303− origSrc = src.origSrc or src;
304− origSubDir = src.origSubDir or "" + "/" + subDir;
305− outPath = origSrc + origSubDir;
308− # We are not going to need other parts of `origSrc` if there
309− # was one and we can ignore it
311− outPath = src + "/" + subDir;
314 # Givin a `src` split it into a `root` path (based on `src.origSrc` if
297 # Givin a `src` split it into a `root` path (based on `src.origSrc` if
315 # present) and `subDir` (based on `src.origSubDir). The
298 # present) and `subDir` (based on `src.origSubDir). The