haskell-stack: Add support for stack.yaml in source

This commit is contained in:
Dominic Monroe 2017-05-18 20:35:38 +01:00 committed by Michael Aldridge
parent b6353855d5
commit 36ac446b2a
2 changed files with 6 additions and 2 deletions

View file

@ -8,6 +8,8 @@ do_build() {
if [ -f "${FILESDIR}/stack.yaml" ]; then
msg_normal "Using stack config in stack.yaml.\n"
cp "${FILESDIR}/stack.yaml" .
elif [ -z "$stackage" -a -f "stack.yaml" ]; then
msg_normal "Using stack.yaml from downloaded source.\n"
else
if [ -z "$stackage" ]; then
msg_error "Stackage version not set in \$stackage.\n"