summaryrefslogtreecommitdiff
path: root/src/Propellor/Bootstrap.hs
diff options
context:
space:
mode:
authorJoey Hess2015-02-28 12:57:20 -0400
committerJoey Hess2015-02-28 12:57:20 -0400
commit42c1106ea0926be314e3d7d40b953f8d93950483 (patch)
tree79233580e02b37525c36d39388a6f2396929d4d4 /src/Propellor/Bootstrap.hs
parente26c232d154eb1a6b6eca631414ed7526993f88c (diff)
support installing build deps using pure cabal, rather than debian packages
for non-debian systems
Diffstat (limited to 'src/Propellor/Bootstrap.hs')
-rw-r--r--src/Propellor/Bootstrap.hs8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/Propellor/Bootstrap.hs b/src/Propellor/Bootstrap.hs
index 0b3072b2..45340832 100644
--- a/src/Propellor/Bootstrap.hs
+++ b/src/Propellor/Bootstrap.hs
@@ -31,11 +31,15 @@ buildCommand = intercalate " && "
]
depsCommand :: ShellCommand
-depsCommand = "(" ++ aptinstall debdeps ++ " || (apt-get update && " ++ aptinstall debdeps ++ ")) || true;"
- ++ "(" ++ aptinstall ["libghc-async-dev"] ++ " || (cabal update; cabal install async)) || true"
+depsCommand =
+ "(" ++ aptinstall debdeps ++ " || (apt-get update && " ++ aptinstall debdeps ++ ")) && "
+ ++ "(" ++ aptinstall ["libghc-async-dev"] ++ " || (" ++ cabalinstall ["async"] ++ ")) || "
+ ++ "(" ++ cabalinstall ["--only-dependencies"] ++ ")"
where
aptinstall ps = "apt-get --no-upgrade --no-install-recommends -y install " ++ unwords ps
+ cabalinstall ps = "cabal update; cabal install " ++ unwords ps
+
-- This is the same build deps listed in debian/control.
debdeps =
[ "gnupg"