Verified Commit 5bccbc4e authored by doshitan's avatar doshitan

Use lib.canCleanSource

parent b8eac32a
...@@ -36,7 +36,9 @@ let ...@@ -36,7 +36,9 @@ let
|| (type == "directory" && (baseName == "elm-stuff")) || (type == "directory" && (baseName == "elm-stuff"))
); );
contentCleanSource = src: projectCleanSource (cleanSourceWith { filter = contentSourceFilter; inherit src; }); contentCleanSource = src: if canCleanSource src
then projectCleanSource (cleanSourceWith { filter = contentSourceFilter; inherit src; })
else src;
# a bit redundant with gitignoreSource, but keeping it around for now # a bit redundant with gitignoreSource, but keeping it around for now
haskellSourceFilter = name: type: let baseName = baseNameOf (toString name); in ! ( haskellSourceFilter = name: type: let baseName = baseNameOf (toString name); in ! (
...@@ -44,7 +46,9 @@ let ...@@ -44,7 +46,9 @@ let
|| (type == "directory" && (baseName == "dist-newstyle")) || (type == "directory" && (baseName == "dist-newstyle"))
); );
haskellCleanSource = src: projectCleanSource (cleanSourceWith { filter = haskellSourceFilter; inherit src; }); haskellCleanSource = src: if canCleanSource src
then projectCleanSource (cleanSourceWith { filter = haskellSourceFilter; inherit src; })
else src;
}); });
origHaskellPackages = origHaskellPackages =
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment