summaryrefslogtreecommitdiff
path: root/propellor.cabal
diff options
context:
space:
mode:
authorJoey Hess2016-04-02 01:29:23 -0400
committerJoey Hess2016-04-02 01:48:04 -0400
commite3920861ee444945e54fd42ce0f599d585155652 (patch)
treed7297452d9cea6fa4a5f6bc82e69ed3560a641fb /propellor.cabal
parente8d767448a64b0ad529015c7125d97811f9cbbd7 (diff)
Stack support.
* Stack support. "git config propellor.buildsystem stack" will make propellor build its config using stack. * When propellor is installed using stack, propellor --init will automatically set propellor.buildsystem=stack.
Diffstat (limited to 'propellor.cabal')
-rw-r--r--propellor.cabal6
1 files changed, 6 insertions, 0 deletions
diff --git a/propellor.cabal b/propellor.cabal
index d97d4096..3431d410 100644
--- a/propellor.cabal
+++ b/propellor.cabal
@@ -34,6 +34,10 @@ Description:
.
It is configured using haskell.
+Flag UseStack
+ Description: Have propellor rebuild itself using Stack (default is Cabal)
+ Default: False
+
Executable propellor
Main-Is: wrapper.hs
GHC-Options: -threaded -Wall -fno-warn-tabs -O0
@@ -46,6 +50,8 @@ Executable propellor
unix, unix-compat, ansi-terminal, containers (>= 0.5), network, async,
time, mtl, transformers, exceptions (>= 0.6), stm, text,
concurrent-output
+ if flag(UseStack)
+ CPP-Options: -DUSE_STACK
Executable propellor-config
Main-Is: config.hs