cleanCabalComponent: Do not fail on licenses in a subdir (#627)
When the `license-file` is not at the top-level, e.g. in the LICENSES
subdirectory, it didn’t have any chance of being included, as the
subdirectory was filtered out right away.
Include `licenseFiles` in the list of subdirs used for determining
“needed” subdirectories (the ones that will be kept).
commit80541e1076c5611dea399159ad65e142484657d3
authorKirill Elagin <kirelagin@gmail.com>
dateSun 24 May 2020, 15:26 (6 years ago)
parent2a58aff
lib/clean-cabal-component.nix+1
@@ -70,6 +70,7 @@ in
7070 traceReason "directory is needed" (
7171 lib.any (d: lib.strings.hasPrefix (rPath + "/") d) (
7272 dirsNeeded
73+ ++ package.licenseFiles
7374 ++ package.extraSrcFiles
7475 ++ component.extraSrcFiles
7576 ++ package.extraDocFiles