Commit 88d0c6d7 authored by Duncan Coutts's avatar Duncan Coutts Committed by Alexis Williams

Add distDownloadSrcDirectory to DistDirLayout

The directory under dist where we download tarballs and source control
repos to.
parent c71098db
......@@ -89,10 +89,14 @@ data DistDirLayout = DistDirLayout {
distBuildDirectory :: DistDirParams -> FilePath,
distBuildRootDirectory :: FilePath,
-- | The directory under dist where we download tarballs and source
-- control repos to.
--
distDownloadSrcDirectory :: FilePath,
-- | The directory under dist where we put the unpacked sources of
-- packages, in those cases where it makes sense to keep the build
-- artifacts to reduce rebuild times. These can be tarballs or could be
-- scm repos.
-- artifacts to reduce rebuild times.
--
distUnpackedSrcDirectory :: PackageId -> FilePath,
distUnpackedSrcRootDirectory :: FilePath,
......@@ -213,6 +217,8 @@ defaultDistDirLayout projectRoot mdistDirectory =
distUnpackedSrcRootDirectory = distDirectory </> "src"
distUnpackedSrcDirectory pkgid = distUnpackedSrcRootDirectory
</> display pkgid
-- we shouldn't get name clashes so this should be fine:
distDownloadSrcDirectory = distUnpackedSrcRootDirectory
distProjectCacheDirectory = distDirectory </> "cache"
distProjectCacheFile name = distProjectCacheDirectory </> name
......
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