Skip to content

Commit

Permalink
Uses/cabal.mk: Do not include '.' package when CABAL_PROJECT=append
Browse files Browse the repository at this point in the history
If we are appending to an exisiting project file all needed package directories
are already listed there.
  • Loading branch information
arrowd committed Jul 27, 2022
1 parent 22d118e commit d5655de
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Mk/Uses/cabal.mk
Expand Up @@ -224,7 +224,10 @@ cabal-post-extract:

cabal-post-patch:
# Create our own cabal.project
${ECHO_CMD} "packages: ." > ${WRKSRC}/cabal.project
${ECHO_CMD} "packages:" > ${WRKSRC}/cabal.project
. if "${CABAL_PROJECT}" != "append"
${ECHO_CMD} " ." >> ${WRKSRC}/cabal.project
. endif
. for package in ${_use_cabal}
${ECHO_CMD} " ${CABAL_DEPS_SUBDIR}/${package:C/_[0-9]+//}" >> ${WRKSRC}/cabal.project
. endfor
Expand Down

0 comments on commit d5655de

Please sign in to comment.