Commit 638d0a2e authored by Duncan Coutts's avatar Duncan Coutts
Browse files

Add a package property pkgLocalToProject

There are various related properties here like packages that are going
to be built locally inplace rather than added to the store, but
sometimes we need to know if a package was originally specified by the
cabal.project file (explicitly or implicitly).
parent 3d4d48ce
......@@ -1106,6 +1106,7 @@ elaborateInstallPlan platform compiler compilerprogdb
pkgSourceLocation = srcloc
pkgSourceHash = Map.lookup pkgid sourcePackageHashes
pkgLocalToProject = isLocalToProject pkg
pkgBuildStyle = if shouldBuildInplaceOnly pkg
then BuildInplaceOnly else BuildAndInstall
pkgBuildPackageDBStack = buildAndRegisterDbs
......
......@@ -165,6 +165,13 @@ data ElaboratedConfiguredPackage
--pkgSourceDir ? -- currently passed in later because they can use temp locations
--pkgBuildDir ? -- but could in principle still have it here, with optional instr to use temp loc
-- | Is this package one of the ones specified by location in the
-- project file? (As opposed to a dependency, or a named package pulled
-- in)
pkgLocalToProject :: Bool,
-- | Are we going to build and install this package to the store, or are
-- we going to build it and register it locally.
pkgBuildStyle :: BuildStyle,
pkgSetupPackageDBStack :: PackageDBStack,
......
Supports Markdown
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