client: Dockerfiles: remote: hledger-suite: bump hledger-iadd to v1.3.22

Also update build process for a successful build and better caching.

Despite recent releases, hledger-iadd's stack configuration is not
regularly maintained (very out of date). The install documentation is
also very out of date. The maintainer appears to be using cabal for
building.
This commit is contained in:
2025-09-18 15:33:46 -07:00
parent 4c0474ea9f
commit 6c1b7a0fb1

View File

@@ -38,12 +38,14 @@ RUN stack install --local-bin-path=/usr/local/bin
#
WORKDIR /usr/local/src
RUN git clone --depth=1 https://github.com/hpdeifel/hledger-iadd -b v1.3.21
RUN git clone --depth=1 https://github.com/hpdeifel/hledger-iadd -b v1.3.22
WORKDIR /usr/local/src/hledger-iadd
RUN sed -i 's/^ - hledger-lib-1\.32\.2/ - hledger-lib-1\.33\.1@sha256\:3920c9b273ecae8be59628b6f6f93fd1b4f3cee03a89fda23b0c4b183d0577f2\,7844/g' stack.yaml
RUN stack setup
RUN stack install --resolver="lts-22.20" --install-ghc --local-bin-path=/usr/local/bin hledger-iadd
RUN cabal update
RUN cabal v1-install --only-dependencies
RUN cabal v1-configure --bindir /usr/local/bin
RUN cabal v1-build
RUN cabal v1-copy
#
# hledger / hledger-ui / hledger-web