apauley/hledger-flow

Support for Apple Silicon (aarch64-darwin)

zane opened this issue · 3 comments

zane commented

Describe the solution you'd like
I would love to give hledger-join a try, but there don't appear to be binaries available for Apple Silicon (aarch64-darwin).

For anyone who finds this who uses Nix / nix-darwin, the derivation in nixpkgs (haskellPackages.hledger-flow) appears to be broken. Here's the output from trying to force a build of it in case that's useful:

Console output
❯ NIXPKGS_ALLOW_BROKEN=1 nix-shell -p haskellPackages.hledger-flow
this derivation will be built:
  /nix/store/3n4v5pz5lvj6zfmh7fd4xb76j48na8lp-hledger-flow-0.14.4.drv
these 258 paths will be fetched (246.86 MiB download, 2953.51 MiB unpacked):
copying path '/nix/store/…' from 'https://cache.nixos.org'...
copying path '/nix/store/…' from 'https://cache.nixos.org'...
copying path '/nix/store/…' from 'https://cache.nixos.org'...
…
building '/nix/store/3n4v5pz5lvj6zfmh7fd4xb76j48na8lp-hledger-flow-0.14.4.drv'...
setupCompilerEnvironmentPhase
Build with /nix/store/krk856zpvn4w0jjyj14yl84875gn47i8-ghc-9.4.6.
unpacking sources
unpacking source archive /nix/store/ynxiav58x2nzsns9a2aii2id12n12w71-hledger-flow-0.14.4.tar.gz
source root is hledger-flow-0.14.4
setting SOURCE_DATE_EPOCH to timestamp 1624529098 of file hledger-flow-0.14.4/test/TestHelpersTurtle.hs
patching sources
compileBuildDriverPhase
setupCompileFlags: -package-db=/private/tmp/nix-build-hledger-flow-0.14.4.drv-0/tmp.tbARQJWjWG/setup-package.conf.d -j8 -threaded -rtsopts
[1 of 2] Compiling Main             ( Setup.hs, /private/tmp/nix-build-hledger-flow-0.14.4.drv-0/tmp.tbARQJWjWG/Main.o )
[2 of 2] Linking Setup
updateAutotoolsGnuConfigScriptsPhase
configuring
configureFlags: --verbose --prefix=/nix/store/yszq10s8x52wdilaybhvzm76yzfq7nqa-hledger-flow-0.14.4 --libdir=$prefix/lib/$compiler --libsubdir=$abi/$libname --docdir=/nix/store/5clkwwm3pmfvj22dfc7gvnwb6r7973mn-hledger-flow-0.14.4-doc/share/doc/hledger-flow-0.14.4 --with-gcc=clang --package-db=/private/tmp/nix-build-hledger-flow-0.14.4.drv-0/tmp.tbARQJWjWG/package.conf.d --ghc-options=-j8 --disable-split-objs --enable-library-profiling --profiling-detail=exported-functions --disable-profiling --enable-shared --disable-coverage --enable-static --disable-executable-dynamic --enable-tests --disable-benchmarks --enable-library-vanilla --disable-library-for-ghci --ghc-options=-haddock --extra-lib-dirs=/nix/store/xp2k5fhm1mainhschych8jaahwa1vsr7-ncurses-6.4/lib --extra-lib-dirs=/nix/store/swz1ipjzkx5j745dy9n0pc9m3r5x3d61-libffi-3.4.4/lib --extra-lib-dirs=/nix/store/9drxykxrji7fpcgyj4zhvjmd005mmv3g-gmp-with-cxx-6.3.0/lib --extra-include-dirs=/nix/store/02jndc2wwsfigf12wv53k8zwyfvwl9gf-libiconv-50/include --extra-lib-dirs=/nix/store/02jndc2wwsfigf12wv53k8zwyfvwl9gf-libiconv-50/lib --extra-include-dirs=/nix/store/8r1v2mbnfri07zvblalna9xgdfnc763i-libcxx-11.1.0-dev/include --extra-lib-dirs=/nix/store/qxrkgc3jnqj8mfrl9ldi4p4dw5b7352m-libcxx-11.1.0/lib --extra-include-dirs=/nix/store/kxg8az6l60pvnb38n5q1330v8rvyjm53-libcxxabi-11.1.0-dev/include --extra-lib-dirs=/nix/store/8lcimj1qj74z0i9z9n7xlw4972mpvk2n-libcxxabi-11.1.0/lib --extra-include-dirs=/nix/store/02f6mhr69zli2njsliy4pq3n8nkmin3y-compiler-rt-libc-11.1.0-dev/include --extra-lib-dirs=/nix/store/ajcylfijb3is7rnsn6bv7jk3lqfhvwz2-compiler-rt-libc-11.1.0/lib --extra-lib-dirs=/nix/store/pasqlsbixsj19l1w97cghlxzcv2yxz49-apple-framework-CoreFoundation-11.0.0/lib --extra-framework-dirs=/nix/store/pasqlsbixsj19l1w97cghlxzcv2yxz49-apple-framework-CoreFoundation-11.0.0/Library/Frameworks --extra-include-dirs=/nix/store/1f4j10d3flnbcgiak7b8g6krgxaqbxis-libobjc-11.0.0/include --extra-lib-dirs=/nix/store/1f4j10d3flnbcgiak7b8g6krgxaqbxis-libobjc-11.0.0/lib
Using Parsec parser
Configuring hledger-flow-0.14.4...
Dependency base >=4.7 && <5: using base-4.17.2.0
Dependency containers: using containers-0.6.7
Dependency exceptions: using exceptions-0.10.5
Dependency filepath: using filepath-1.4.2.2
Dependency foldl: using foldl-1.4.15
Dependency gitrev: using gitrev-1.3.1
Dependency path: using path-0.9.2
Dependency path-io: using path-io-1.8.1
Dependency stm: using stm-2.5.1.0
Dependency text: using text-2.0.2
Dependency time: using time-1.12.2
Dependency turtle: using turtle-1.6.1
Dependency base >=4.7 && <5: using base-4.17.2.0
Dependency hledger-flow: using hledger-flow-0.14.4
Dependency optparse-applicative: using optparse-applicative-0.17.1.0
Dependency path: using path-0.9.2
Dependency text: using text-2.0.2
Dependency turtle: using turtle-1.6.1
Dependency HUnit: using HUnit-1.6.2.0
Dependency base >=4.7 && <5: using base-4.17.2.0
Dependency containers: using containers-0.6.7
Dependency foldl: using foldl-1.4.15
Dependency hledger-flow: using hledger-flow-0.14.4
Dependency path: using path-0.9.2
Dependency path-io: using path-io-1.8.1
Dependency stm: using stm-2.5.1.0
Dependency text: using text-2.0.2
Dependency turtle: using turtle-1.6.1
Source component graph:
    component lib
    component exe:hledger-flow dependency lib
    component test:hledger-flow-test dependency lib
Configured component graph:
    component hledger-flow-0.14.4-2PwiXHSMeLdDDnnlC1pM3i
        include base-4.17.2.0
        include containers-0.6.7
        include exceptions-0.10.5
        include filepath-1.4.2.2
        include foldl-1.4.15-EIrZbbnvlOM4qXx9iVaEuw
        include gitrev-1.3.1-24ZKGSfAWQB5fo5TAbRuBO
        include path-0.9.2-6DVv6rNz7aYJbVG1570EUA
        include path-io-1.8.1-89NaitGHeai9Tpi6h3ZCFW
        include stm-2.5.1.0
        include text-2.0.2
        include time-1.12.2
        include turtle-1.6.1-7sIJAYg0bWGKImGGaBhhnv
    component hledger-flow-0.14.4-8b8GScBzRFr95ovwPRiG7H-hledger-flow
        include base-4.17.2.0
        include hledger-flow-0.14.4-2PwiXHSMeLdDDnnlC1pM3i
        include optparse-applicative-0.17.1.0-68i13fisrCCFs4h4zVKz1x
        include path-0.9.2-6DVv6rNz7aYJbVG1570EUA
        include text-2.0.2
        include turtle-1.6.1-7sIJAYg0bWGKImGGaBhhnv
    component hledger-flow-0.14.4-Aavf3S2pDbY600WNhNUqlY-hledger-flow-test
        include HUnit-1.6.2.0-529noIboYTx8FXotp4y5vH
        include base-4.17.2.0
        include containers-0.6.7
        include foldl-1.4.15-EIrZbbnvlOM4qXx9iVaEuw
        include hledger-flow-0.14.4-2PwiXHSMeLdDDnnlC1pM3i
        include path-0.9.2-6DVv6rNz7aYJbVG1570EUA
        include path-io-1.8.1-89NaitGHeai9Tpi6h3ZCFW
        include stm-2.5.1.0
        include text-2.0.2
        include turtle-1.6.1-7sIJAYg0bWGKImGGaBhhnv
Linked component graph:
    unit hledger-flow-0.14.4-2PwiXHSMeLdDDnnlC1pM3i
        include base-4.17.2.0
        include containers-0.6.7
        include exceptions-0.10.5
        include filepath-1.4.2.2
        include foldl-1.4.15-EIrZbbnvlOM4qXx9iVaEuw
        include gitrev-1.3.1-24ZKGSfAWQB5fo5TAbRuBO
        include path-0.9.2-6DVv6rNz7aYJbVG1570EUA
        include path-io-1.8.1-89NaitGHeai9Tpi6h3ZCFW
        include stm-2.5.1.0
        include text-2.0.2
        include time-1.12.2
        include turtle-1.6.1-7sIJAYg0bWGKImGGaBhhnv
        Hledger.Flow.BaseDir=hledger-flow-0.14.4-2PwiXHSMeLdDDnnlC1pM3i:Hledger.Flow.BaseDir,Hledger.Flow.Common=hledger-flow-0.14.4-2PwiXHSMeLdDDnnlC1pM3i:Hledger.Flow.Common,Hledger.Flow.DateTime=hledger-flow-0.14.4-2PwiXHSMeLdDDnnlC1pM3i:Hledger.Flow.DateTime,Hledger.Flow.DocHelpers=hledger-flow-0.14.4-2PwiXHSMeLdDDnnlC1pM3i:Hledger.Flow.DocHelpers,Hledger.Flow.Import.CSVImport=hledger-flow-0.14.4-2PwiXHSMeLdDDnnlC1pM3i:Hledger.Flow.Import.CSVImport,Hledger.Flow.Import.ImportHelpers=hledger-flow-0.14.4-2PwiXHSMeLdDDnnlC1pM3i:Hledger.Flow.Import.ImportHelpers,Hledger.Flow.Import.ImportHelpersTurtle=hledger-flow-0.14.4-2PwiXHSMeLdDDnnlC1pM3i:Hledger.Flow.Import.ImportHelpersTurtle,Hledger.Flow.Import.Types=hledger-flow-0.14.4-2PwiXHSMeLdDDnnlC1pM3i:Hledger.Flow.Import.Types,Hledger.Flow.Internals=hledger-flow-0.14.4-2PwiXHSMeLdDDnnlC1pM3i:Hledger.Flow.Internals,Hledger.Flow.Logging=hledger-flow-0.14.4-2PwiXHSMeLdDDnnlC1pM3i:Hledger.Flow.Logging,Hledger.Flow.PathHelpers=hledger-flow-0.14.4-2PwiXHSMeLdDDnnlC1pM3i:Hledger.Flow.PathHelpers,Hledger.Flow.Reports=hledger-flow-0.14.4-2PwiXHSMeLdDDnnlC1pM3i:Hledger.Flow.Reports,Hledger.Flow.RuntimeOptions=hledger-flow-0.14.4-2PwiXHSMeLdDDnnlC1pM3i:Hledger.Flow.RuntimeOptions,Hledger.Flow.Types=hledger-flow-0.14.4-2PwiXHSMeLdDDnnlC1pM3i:Hledger.Flow.Types
    unit hledger-flow-0.14.4-8b8GScBzRFr95ovwPRiG7H-hledger-flow
        include base-4.17.2.0
        include hledger-flow-0.14.4-2PwiXHSMeLdDDnnlC1pM3i
        include optparse-applicative-0.17.1.0-68i13fisrCCFs4h4zVKz1x
        include path-0.9.2-6DVv6rNz7aYJbVG1570EUA
        include text-2.0.2
        include turtle-1.6.1-7sIJAYg0bWGKImGGaBhhnv
    unit hledger-flow-0.14.4-Aavf3S2pDbY600WNhNUqlY-hledger-flow-test
        include HUnit-1.6.2.0-529noIboYTx8FXotp4y5vH
        include base-4.17.2.0
        include containers-0.6.7
        include foldl-1.4.15-EIrZbbnvlOM4qXx9iVaEuw
        include hledger-flow-0.14.4-2PwiXHSMeLdDDnnlC1pM3i
        include path-0.9.2-6DVv6rNz7aYJbVG1570EUA
        include path-io-1.8.1-89NaitGHeai9Tpi6h3ZCFW
        include stm-2.5.1.0
        include text-2.0.2
        include turtle-1.6.1-7sIJAYg0bWGKImGGaBhhnv
Ready component graph:
    definite hledger-flow-0.14.4-2PwiXHSMeLdDDnnlC1pM3i
        depends base-4.17.2.0
        depends containers-0.6.7
        depends exceptions-0.10.5
        depends filepath-1.4.2.2
        depends foldl-1.4.15-EIrZbbnvlOM4qXx9iVaEuw
        depends gitrev-1.3.1-24ZKGSfAWQB5fo5TAbRuBO
        depends path-0.9.2-6DVv6rNz7aYJbVG1570EUA
        depends path-io-1.8.1-89NaitGHeai9Tpi6h3ZCFW
        depends stm-2.5.1.0
        depends text-2.0.2
        depends time-1.12.2
        depends turtle-1.6.1-7sIJAYg0bWGKImGGaBhhnv
    definite hledger-flow-0.14.4-8b8GScBzRFr95ovwPRiG7H-hledger-flow
        depends base-4.17.2.0
        depends hledger-flow-0.14.4-2PwiXHSMeLdDDnnlC1pM3i
        depends optparse-applicative-0.17.1.0-68i13fisrCCFs4h4zVKz1x
        depends path-0.9.2-6DVv6rNz7aYJbVG1570EUA
        depends text-2.0.2
        depends turtle-1.6.1-7sIJAYg0bWGKImGGaBhhnv
    definite hledger-flow-0.14.4-Aavf3S2pDbY600WNhNUqlY-hledger-flow-test
        depends HUnit-1.6.2.0-529noIboYTx8FXotp4y5vH
        depends base-4.17.2.0
        depends containers-0.6.7
        depends foldl-1.4.15-EIrZbbnvlOM4qXx9iVaEuw
        depends hledger-flow-0.14.4-2PwiXHSMeLdDDnnlC1pM3i
        depends path-0.9.2-6DVv6rNz7aYJbVG1570EUA
        depends path-io-1.8.1-89NaitGHeai9Tpi6h3ZCFW
        depends stm-2.5.1.0
        depends text-2.0.2
        depends turtle-1.6.1-7sIJAYg0bWGKImGGaBhhnv
Using Cabal-3.8.1.0 compiled by ghc-9.4
Using compiler: ghc-9.4.6
Using install prefix:
/nix/store/yszq10s8x52wdilaybhvzm76yzfq7nqa-hledger-flow-0.14.4
Executables installed in:
/nix/store/yszq10s8x52wdilaybhvzm76yzfq7nqa-hledger-flow-0.14.4/bin
Libraries installed in:
/nix/store/yszq10s8x52wdilaybhvzm76yzfq7nqa-hledger-flow-0.14.4/lib/ghc-9.4.6/aarch64-osx-ghc-9.4.6/hledger-flow-0.14.4-2PwiXHSMeLdDDnnlC1pM3i
Dynamic Libraries installed in:
/nix/store/yszq10s8x52wdilaybhvzm76yzfq7nqa-hledger-flow-0.14.4/lib/ghc-9.4.6/aarch64-osx-ghc-9.4.6
Private executables installed in:
/nix/store/yszq10s8x52wdilaybhvzm76yzfq7nqa-hledger-flow-0.14.4/libexec/aarch64-osx-ghc-9.4.6/hledger-flow-0.14.4
Data files installed in:
/nix/store/yszq10s8x52wdilaybhvzm76yzfq7nqa-hledger-flow-0.14.4/share/aarch64-osx-ghc-9.4.6/hledger-flow-0.14.4
Documentation installed in:
/nix/store/5clkwwm3pmfvj22dfc7gvnwb6r7973mn-hledger-flow-0.14.4-doc/share/doc/hledger-flow-0.14.4
Configuration files installed in:
/nix/store/yszq10s8x52wdilaybhvzm76yzfq7nqa-hledger-flow-0.14.4/etc
No alex found
Using ar found on system at:
/nix/store/5v4ycnqpfammvlwpadyc26by7hy604cz-cctools-binutils-darwin-11.1.0-973.0.1/bin/ar
No c2hs found
No cpphs found
No doctest found
Using gcc version 11.1.0 given by user at:
/nix/store/ybr7a0lvp4dzr14f1l3882x5qb68vkls-clang-wrapper-11.1.0/bin/clang
Using ghc version 9.4.6 found on system at:
/nix/store/krk856zpvn4w0jjyj14yl84875gn47i8-ghc-9.4.6/bin/ghc
Using ghc-pkg version 9.4.6 found on system at:
/nix/store/krk856zpvn4w0jjyj14yl84875gn47i8-ghc-9.4.6/bin/ghc-pkg-9.4.6
No ghcjs found
No ghcjs-pkg found
No greencard found
Using haddock version 2.27.0 found on system at:
/nix/store/krk856zpvn4w0jjyj14yl84875gn47i8-ghc-9.4.6/bin/haddock-ghc-9.4.6
No happy found
Using haskell-suite found on system at: haskell-suite-dummy-location
Using haskell-suite-pkg found on system at: haskell-suite-pkg-dummy-location
No hmake found
Using hpc version 0.68 found on system at:
/nix/store/krk856zpvn4w0jjyj14yl84875gn47i8-ghc-9.4.6/bin/hpc
Using hsc2hs version 0.68.8 found on system at:
/nix/store/krk856zpvn4w0jjyj14yl84875gn47i8-ghc-9.4.6/bin/hsc2hs
Using hscolour version 1.24 found on system at:
/nix/store/89a9cwxkikxg8p10bna3805h141v3hp6-hscolour-1.24.4/bin/HsColour
No jhc found
Using ld found on system at:
/nix/store/7yafaqqhz1i9s4jmsj51g28c22yhq3kq-cctools-binutils-darwin-wrapper-11.1.0-973.0.1/bin/ld
No pkg-config found
Using runghc version 9.4.6 found on system at:
/nix/store/krk856zpvn4w0jjyj14yl84875gn47i8-ghc-9.4.6/bin/runghc-9.4.6
Using strip found on system at:
/nix/store/ybr7a0lvp4dzr14f1l3882x5qb68vkls-clang-wrapper-11.1.0/bin/strip
Using tar found on system at:
/nix/store/h1y472wdyk5jn7qsgwhcblaj9j42xrx9-gnutar-1.35/bin/tar
No uhc found
building
Preprocessing library for hledger-flow-0.14.4..
Building library for hledger-flow-0.14.4..
[ 1 of 15] Compiling Hledger.Flow.DateTime ( src/Hledger/Flow/DateTime.hs, dist/build/Hledger/Flow/DateTime.o, dist/build/Hledger/Flow/DateTime.dyn_o )
[ 2 of 15] Compiling Hledger.Flow.DocHelpers ( src/Hledger/Flow/DocHelpers.hs, dist/build/Hledger/Flow/DocHelpers.o, dist/build/Hledger/Flow/DocHelpers.dyn_o )
[ 3 of 15] Compiling Hledger.Flow.PathHelpers ( src/Hledger/Flow/PathHelpers.hs, dist/build/Hledger/Flow/PathHelpers.o, dist/build/Hledger/Flow/PathHelpers.dyn_o )

src/Hledger/Flow/PathHelpers.hs:32:80: warning: [-Wdeprecations]
    In the use of ‘encodeString’
    (imported from Turtle, but defined in turtle-1.6.1:Turtle.Internal):
    Deprecated: "Use id instead"
   |
32 |   show (InvalidTurtleDir d) = "Expected a directory but got this instead: " ++ Turtle.encodeString d
   |                                                                                ^^^^^^^^^^^^^^^^^^^

src/Hledger/Flow/PathHelpers.hs:37:52: warning: [-Wdeprecations]
    In the use of ‘encodeString’
    (imported from Turtle, but defined in turtle-1.6.1:Turtle.Internal):
    Deprecated: "Use id instead"
   |
37 | fromTurtleAbsFile turtlePath = Path.parseAbsFile $ Turtle.encodeString turtlePath
   |                                                    ^^^^^^^^^^^^^^^^^^^

src/Hledger/Flow/PathHelpers.hs:40:52: warning: [-Wdeprecations]
    In the use of ‘encodeString’
    (imported from Turtle, but defined in turtle-1.6.1:Turtle.Internal):
    Deprecated: "Use id instead"
   |
40 | fromTurtleRelFile turtlePath = Path.parseRelFile $ Turtle.encodeString turtlePath
   |                                                    ^^^^^^^^^^^^^^^^^^^

src/Hledger/Flow/PathHelpers.hs:43:50: warning: [-Wdeprecations]
    In the use of ‘encodeString’
    (imported from Turtle, but defined in turtle-1.6.1:Turtle.Internal):
    Deprecated: "Use id instead"
   |
43 | fromTurtleAbsDir turtlePath = Path.parseAbsDir $ Turtle.encodeString turtlePath
   |                                                  ^^^^^^^^^^^^^^^^^^^

src/Hledger/Flow/PathHelpers.hs:46:50: warning: [-Wdeprecations]
    In the use of ‘encodeString’
    (imported from Turtle, but defined in turtle-1.6.1:Turtle.Internal):
    Deprecated: "Use id instead"
   |
46 | fromTurtleRelDir turtlePath = Path.parseRelDir $ Turtle.encodeString turtlePath
   |                                                  ^^^^^^^^^^^^^^^^^^^

src/Hledger/Flow/PathHelpers.hs:52:36: warning: [-Wdeprecations]
    In the use of ‘encodeString’
    (imported from Turtle, but defined in turtle-1.6.1:Turtle.Internal):
    Deprecated: "Use id instead"
   |
52 |     then Path.resolveDir baseDir $ Turtle.encodeString p
   |                                    ^^^^^^^^^^^^^^^^^^^

src/Hledger/Flow/PathHelpers.hs:56:16: warning: [-Wdeprecations]
    In the use of ‘decodeString’
    (imported from Turtle, but defined in turtle-1.6.1:Turtle.Internal):
    Deprecated: "Use id instead"
   |
56 | pathToTurtle = Turtle.decodeString . Path.toFilePath
   |                ^^^^^^^^^^^^^^^^^^^
[ 4 of 15] Compiling Hledger.Flow.Import.Types ( src/Hledger/Flow/Import/Types.hs, dist/build/Hledger/Flow/Import/Types.o, dist/build/Hledger/Flow/Import/Types.dyn_o )
[ 5 of 15] Compiling Hledger.Flow.Types ( src/Hledger/Flow/Types.hs, dist/build/Hledger/Flow/Types.o, dist/build/Hledger/Flow/Types.dyn_o )
[ 6 of 15] Compiling Hledger.Flow.Logging ( src/Hledger/Flow/Logging.hs, dist/build/Hledger/Flow/Logging.o, dist/build/Hledger/Flow/Logging.dyn_o )
[ 7 of 15] Compiling Hledger.Flow.BaseDir ( src/Hledger/Flow/BaseDir.hs, dist/build/Hledger/Flow/BaseDir.o, dist/build/Hledger/Flow/BaseDir.dyn_o )
[ 8 of 15] Compiling Hledger.Flow.Common ( src/Hledger/Flow/Common.hs, dist/build/Hledger/Flow/Common.o, dist/build/Hledger/Flow/Common.dyn_o )

src/Hledger/Flow/Common.hs:233:109: error:
    • Couldn't match type ‘T.Text’ with ‘[Char]’
      Expected: String
        Actual: T.Text
    • In the second argument of ‘(<.>)’, namely ‘ext’
      In the expression:
        Turtle.fromText
          (T.intercalate "-" (map Turtle.lineToText identifiers))
          <.> ext
      In an equation for ‘buildFilename’:
          buildFilename identifiers ext
            = Turtle.fromText
                (T.intercalate "-" (map Turtle.lineToText identifiers))
                <.> ext
    |
233 | buildFilename identifiers ext = Turtle.fromText (T.intercalate "-" (map Turtle.lineToText identifiers)) <.> ext
    |                                                                                                             ^^^

src/Hledger/Flow/Common.hs:252:60: error:
    • Couldn't match type ‘T.Text’ with ‘[Char]’
      Expected: String
        Actual: T.Text
    • In the second argument of ‘(<.>)’, namely ‘ext’
      In the expression: (Turtle.dropExtension path) <.> ext
      In an equation for ‘changeExtension’:
          changeExtension ext path = (Turtle.dropExtension path) <.> ext
    |
252 | changeExtension ext path = (Turtle.dropExtension path) <.> ext
    |                                                            ^^^
[11 of 15] Compiling Paths_hledger_flow ( dist/build/autogen/Paths_hledger_flow.hs, dist/build/Paths_hledger_flow.o, dist/build/Paths_hledger_flow.dyn_o )
[12 of 15] Compiling Hledger.Flow.Internals ( src/Hledger/Flow/Internals.hs, dist/build/Hledger/Flow/Internals.o, dist/build/Hledger/Flow/Internals.dyn_o )
[13 of 15] Compiling Hledger.Flow.RuntimeOptions ( src/Hledger/Flow/RuntimeOptions.hs, dist/build/Hledger/Flow/RuntimeOptions.o, dist/build/Hledger/Flow/RuntimeOptions.dyn_o )
error: builder for '/nix/store/3n4v5pz5lvj6zfmh7fd4xb76j48na8lp-hledger-flow-0.14.4.drv' failed with exit code 1;
       last 10 log lines:
       >     • In the second argument of ‘(<.>)’, namely ‘ext’
       >       In the expression: (Turtle.dropExtension path) <.> ext
       >       In an equation for ‘changeExtension’:
       >           changeExtension ext path = (Turtle.dropExtension path) <.> ext
       >     |
       > 252 | changeExtension ext path = (Turtle.dropExtension path) <.> ext
       >     |                                                            ^^^
       > [11 of 15] Compiling Paths_hledger_flow ( dist/build/autogen/Paths_hledger_flow.hs, dist/build/Paths_hledger_flow.o, dist/build/Paths_hledger_flow.dyn_o )
       > [12 of 15] Compiling Hledger.Flow.Internals ( src/Hledger/Flow/Internals.hs, dist/build/Hledger/Flow/Internals.o, dist/build/Hledger/Flow/Internals.dyn_o )
       > [13 of 15] Compiling Hledger.Flow.RuntimeOptions ( src/Hledger/Flow/RuntimeOptions.hs, dist/build/Hledger/Flow/RuntimeOptions.o, dist/build/Hledger/Flow/RuntimeOptions.dyn_o )
       For full logs, run 'nix log /nix/store/3n4v5pz5lvj6zfmh7fd4xb76j48na8lp-hledger-flow-0.14.4.drv'.

Additional context

System Version: macOS 14.0 (23A344)
Kernel Version: Darwin 23.0.0

Hi @zane, at the moment the only way to get it is to build the binary yourself.

Here are the instructions:
https://github.com/apauley/hledger-flow/blob/master/CONTRIBUTING.org#build-the-project

zane commented

Understood! Thanks for hledger-flow!

zane commented

Looks like it's building successfully in nixpkgs-23.05. Nix users can try it out with

nix-shell -I nixpkgs=https://github.com/NixOS/nixpkgs/archive/refs/tags/23.05.tar.gz -p haskellPackages.hledger-flow