Commit 6a57d75d authored by Duncan Coutts's avatar Duncan Coutts
Browse files

Add configure --package-db= flag to use specific package db

Should allow satisfying deps from the given package db and should register
into that db. It is not thoroughly tested however.
parent 07163270
......@@ -428,6 +428,14 @@ configureCommand progConf = makeCommand name shortDesc longDesc defaultFlags opt
configUserInstall (\v flags -> flags { configUserInstall = v })
falseArg
,option "" ["package-db"]
"Use a specific package database (to satisfy dependencies and register in)"
configPackageDB (\v flags -> flags { configPackageDB = v })
(reqArg "PATH" (Flag . SpecificPackageDB)
(\f -> case f of
Flag (SpecificPackageDB db) -> [db]
_ -> []))
,option "f" ["flags"]
"Force values for the given flags in Cabal conditionals in the .cabal file. E.g., --flags=\"debug -usebytestrings\" forces the flag \"debug\" to true and \"usebytestrings\" to false."
configConfigurationsFlags (\v flags -> flags { configConfigurationsFlags = v })
......
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