From a604cfd7efea30e37b1037a899fcc3b396a0a1d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= Date: Mon, 25 Mar 2024 12:35:53 -0300 Subject: [PATCH] build-style/haskell-stack: place stack root in /host to make it persistent --- common/build-style/haskell-stack.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/build-style/haskell-stack.sh b/common/build-style/haskell-stack.sh index 2a28ffc9881168..8131d60db009e9 100644 --- a/common/build-style/haskell-stack.sh +++ b/common/build-style/haskell-stack.sh @@ -20,11 +20,11 @@ do_build() { msg_error "Stackage version not set in \$stackage.\n" fi msg_normal "Using stackage resolver ${stackage}.\n" - STACK_ROOT="$wrksrc/.stack" \ + STACK_ROOT="/host/stack" \ stack init ${_stack_args} --force --resolver ${stackage} fi - STACK_ROOT="$wrksrc/.stack" stack ${_stack_args} ${makejobs} build \ + STACK_ROOT="/host/stack" stack ${_stack_args} ${makejobs} build \ ${make_build_args} } @@ -32,6 +32,6 @@ do_install() { local _stack_args="--system-ghc --skip-ghc-check" vmkdir usr/bin - STACK_ROOT="$wrksrc/.stack" stack ${_stack_args} install \ + STACK_ROOT="/host/stack" stack ${_stack_args} install \ ${make_build_args} --local-bin-path=${DESTDIR}/usr/bin }