put stack work dir into package
@@ -19,8 +19,10 @@ export LIBRARY_PATH=${PREFIX}/lib
export STACK_ROOT=$PACKAGE_HOME/stackroot
mkdir -p $STACK_ROOT
+export STACK_WORK=$PACKAGE_HOME/stackwork
+mkdir -p $STACK_WORK
-STACK_OPTS="--local-bin-path ${PREFIX}/bin --extra-include-dirs ${PREFIX}/include --extra-lib-dirs ${PREFIX}/lib --stack-root ${STACK_ROOT}"
+STACK_OPTS="--local-bin-path ${PREFIX}/bin --extra-include-dirs ${PREFIX}/include --extra-lib-dirs ${PREFIX}/lib --stack-root ${STACK_ROOT} --stack-work ${STACK_WORK}"
mkdir -p ${PREFIX}/bin
