support installing build deps using pure cabal, rather than debian packages
for non-debian systems
This commit is contained in:
parent
e26c232d15
commit
42c1106ea0
|
@ -31,11 +31,15 @@ buildCommand = intercalate " && "
|
||||||
]
|
]
|
||||||
|
|
||||||
depsCommand :: ShellCommand
|
depsCommand :: ShellCommand
|
||||||
depsCommand = "(" ++ aptinstall debdeps ++ " || (apt-get update && " ++ aptinstall debdeps ++ ")) || true;"
|
depsCommand =
|
||||||
++ "(" ++ aptinstall ["libghc-async-dev"] ++ " || (cabal update; cabal install async)) || true"
|
"(" ++ aptinstall debdeps ++ " || (apt-get update && " ++ aptinstall debdeps ++ ")) && "
|
||||||
|
++ "(" ++ aptinstall ["libghc-async-dev"] ++ " || (" ++ cabalinstall ["async"] ++ ")) || "
|
||||||
|
++ "(" ++ cabalinstall ["--only-dependencies"] ++ ")"
|
||||||
where
|
where
|
||||||
aptinstall ps = "apt-get --no-upgrade --no-install-recommends -y install " ++ unwords ps
|
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.
|
-- This is the same build deps listed in debian/control.
|
||||||
debdeps =
|
debdeps =
|
||||||
[ "gnupg"
|
[ "gnupg"
|
||||||
|
|
Loading…
Reference in New Issue