Skip to content

haskellPackages.haxl: work around broken Setup.hs - #449093

Merged
wolfgangwalther merged 1 commit into
NixOS:haskell-updatesfrom
sternenseemann:haxl-setup
Oct 13, 2025
Merged

wolfgangwalther merged 1 commit into
NixOS:haskell-updatesfrom
sternenseemann:haxl-setup

Conversation

@sternenseemann

@sternenseemann sternenseemann commented Oct 6, 2025 •

Copy link
Copy Markdown
Member

pkgs.codd depends on this package which wasn't previously apparent since it is not part of our haskell-updates jobset.

Things done

  • Built on platform:
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • Tested, as applicable:
  • Ran nixpkgs-review on this PR. See nixpkgs-review usage.
  • Tested basic functionality of all binary files, usually in ./result/bin/.
  • Nixpkgs Release Notes
    • Package update: when the change is major or breaking.
  • NixOS Release Notes
    • Module addition: when adding a new NixOS module.
    • Module update: when the change is significant.
  • Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other READMEs.

Add a 👍 reaction to pull requests you find important.

pkgs.codd depends on this package which wasn't previously apparent since
it is not part of our haskell-updates jobset.
@sternenseemann
sternenseemann requested a review from lf- October 6, 2025 10:34
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 6.topic: haskell General-purpose, statically typed, purely functional programming language labels Oct 6, 2025

@lf- lf- left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yup this jank is required. i also have a working build up to glean at work but it's achieved via utter atrocities and i would love to slowly upstream doing it correctly at some point. an older version of my full horrible overlay is on the macOS support issue on glean.

we've been having issues with libglog not shipping pkgconfig yet if we replace it with libfolly which contains the necessary cflags, cabal doesn't actually use them for some unknown reason. this is just an fyi for the process of getting glean working; can discuss further elsewhere.

@nixpkgs-ci nixpkgs-ci Bot added the 12.approvals: 1 This PR was reviewed and approved by one person. label Oct 6, 2025
@wolfgangwalther

Copy link
Copy Markdown
Contributor

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 449093
Commit: 17e7702cea255a2c218a6c8359fad293877dd467


x86_64-linux

❌ 10 packages failed to build:
  • haskellPackages.clickhouse-haskell
  • haskellPackages.clickhouse-haskell.doc
  • haskellPackages.haxl-amazonka
  • haskellPackages.haxl-amazonka.doc
  • haskellPackages.haxl-facebook
  • haskellPackages.haxl-facebook.doc
  • haskellPackages.scotty-haxl
  • haskellPackages.scotty-haxl.doc
  • haskellPackages.servant-haxl-client
  • haskellPackages.servant-haxl-client.doc
✅ 6 packages built:
  • codd
  • haskell.package-list
  • haskellPackages.haxl
  • haskellPackages.haxl.doc
  • haskellPackages.rediscaching-haxl
  • haskellPackages.rediscaching-haxl.doc

Error logs: `x86_64-linux`
haskellPackages.clickhouse-haskell
    attoparsec >=0.13.2 && <0.14,
    bytestring >=0.10.8 && <0.11,
    call-stack >=0.2.0 && <0.3,
    containers >=0.5.7 && <0.7,
    data-default-class >=0.1.2 && <0.2,
    filepath >=1.4.1 && <1.5,
    hashable >=1.2.7 && <1.4,
    haxl >=2.3.0 && <2.4,
    http-client >=0.6.4 && <0.7,
    monad-parallel >=0.7.2 && <0.8,
    mtl >=2.2.2 && <2.3,
    network >=3.1.0 && <3.2,
    resource-pool >=0.2.3 && <0.3,
    text >=1.2.4 && <1.3,
    time >=1.9 && <1.12,
    transformers >=0.5.2 && <0.6,
    vector >=0.12.1 && <0.13
CallStack (from HasCallStack):
  dieWithException, called at libraries/Cabal/Cabal/src/Distribution/Simple/Configure.hs:1457:11 in Cabal-3.12.1.0-9b2d:Distribution.Simple.Configure
haskellPackages.haxl-amazonka
Using strip version 2.44 found on system at:
/nix/store/dmypp1h4ldn0vfk3fi6yfyf5yxp9yz0k-gcc-wrapper-14.3.0/bin/strip
Using tar found on system at:
/nix/store/n09s57l86zxyjydkxagawxpkhh3d3dlh-gnutar-1.35/bin/tar
No uhc found
Running phase: buildPhase
@nix { "action": "setPhase", "phase": "buildPhase" }
Preprocessing library for haxl-amazonka-0.1.1...
Building library for haxl-amazonka-0.1.1...
[1 of 1] Compiling Network.AWS.DataSource ( lib/Network/AWS/DataSource.hs, dist/build/Network/AWS/DataSource.o, dist/build/Network/AWS/DataSource.dyn_o )
lib/Network/AWS/DataSource.hs:32:1: error: [8;;https://errors.haskell.org/messages/GHC-61948GHC-619488;;]
    Could not find module ‘Network.AWS’.
    Perhaps you meant
      Network.TLS (needs flag -package-id tls-2.1.8)
      Network.URI (needs flag -package-id network-uri-2.6.4.2)
    Use -v to see a list of the files searched for.
   |
32 | import           Network.AWS              as AWS
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
haskellPackages.haxl-facebook
Configuring haxl-facebook-0.1.0.0...
Error: [Cabal-8010]
Encountered missing or private dependencies:
    aeson >=0.6 && <0.8,
    async >=2.0 && <2.1,
    base >=4.6 && <4.8,
    conduit >=1.1 && <1.2,
    data-default >=0.5 && <0.6,
    fb >=1.0 && <1.1,
    hashable >=1.2 && <1.3,
    haxl >=0.1 && <0.2,
    http-client-tls >=0.2 && <0.3,
    http-conduit >=2.1 && <2.2,
    resourcet >=1.1 && <1.2,
    text >=0.11 && <1.2,
    time >=1.4 && <1.5,
    transformers >=0.3 && <0.5
CallStack (from HasCallStack):
  dieWithException, called at libraries/Cabal/Cabal/src/Distribution/Simple/Configure.hs:1457:11 in Cabal-3.12.1.0-9b2d:Distribution.Simple.Configure
haskellPackages.scotty-haxl
src/Web/Scotty/Haxl.hs:13:30: error: [8;;https://errors.haskell.org/messages/GHC-83865GHC-838658;;]
    • Expected kind ‘* -> *’, but ‘LT.Text’ has kind ‘*’
    • In the first argument of ‘ActionT’, namely ‘LT.Text’
      In the type ‘ActionT LT.Text (GenHaxl u w) b’
      In the type declaration for ‘ActionH’
   |
13 | type ActionH u w b = ActionT LT.Text (GenHaxl u w) b
   |                              ^^^^^^^

src/Web/Scotty/Haxl.hs:13:39: error: [8;;https://errors.haskell.org/messages/GHC-83865GHC-838658;;]
• Expecting one more argument to ‘GenHaxl u w’
Expected a type, but ‘GenHaxl u w’ has kind ‘* -> *’
• In the second argument of ‘ActionT’, namely ‘(GenHaxl u w)’
In the type ‘ActionT LT.Text (GenHaxl u w) b’
In the type declaration for ‘ActionH’
|
13 | type ActionH u w b = ActionT LT.Text (GenHaxl u w) b
| ^^^^^^^^^^^

haskellPackages.servant-haxl-client
@nix { "action": "setPhase", "phase": "patchPhase" }
Replace Cabal file with edited version from mirror://hackage/servant-haxl-client-0.2.0.0/revision/2.cabal.
Running phase: compileBuildDriverPhase
@nix { "action": "setPhase", "phase": "compileBuildDriverPhase" }
setupCompileFlags: -package-db=/build/tmp.5FQFyaGect/setup-package.conf.d -threaded
[1 of 2] Compiling Main             ( Setup.hs, /build/tmp.5FQFyaGect/Main.o )
[2 of 2] Linking Setup
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
Running phase: configurePhase
@nix { "action": "setPhase", "phase": "configurePhase" }
configureFlags: --verbose --prefix=/nix/store/34plbkndr292nmlk961bj4iq89hv12ya-servant-haxl-client-0.2.0.0 --libdir=$prefix/lib/$compiler/lib --libsubdir=$abi/$libname --docdir=/nix/store/07rvllhrllf3xa0np7gyqm99bnxrq0nm-servant-haxl-client-0.2.0.0-doc/share/doc/servant-haxl-client-0.2.0.0 --with-gcc=gcc --package-db=/build/tmp.5FQFyaGect/package.conf.d --ghc-option=-j16 --ghc-option=+RTS --ghc-option=-A64M --ghc-option=-RTS --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 --enable-split-sections --enable-library-stripping --enable-executable-stripping --ghc-option=-haddock --extra-lib-dirs=/nix/store/lm4wm3f4ynilxw8yvgqq0hj2ng8ky9xy-ncurses-6.5/lib --extra-lib-dirs=/nix/store/jwjf14rgh6ms0vn2c4qvx2b6h97cg3ps-libffi-3.5.2/lib --extra-lib-dirs=/nix/store/5vlqyz0yh8rgb81m58kq3qjn6d5qabmn-elfutils-0.193/lib --extra-lib-dirs=/nix/store/k8bqvzzw3xll9sjkai15skrj7ab4f8gg-gmp-with-cxx-6.3.0/lib --extra-lib-dirs=/nix/store/w6qs78naqpp32ffdknxa9vdp4z1r4v9r-numactl-2.0.18/lib
Using Parsec parser
Configuring servant-haxl-client-0.2.0.0...
Error: [Cabal-8010]
Encountered missing or private dependencies:
    servant >=0.4 && <0.5, servant-server >=0.4 && <0.5
CallStack (from HasCallStack):
  dieWithException, called at libraries/Cabal/Cabal/src/Distribution/Simple/Configure.hs:1457:11 in Cabal-3.12.1.0-9b2d:Distribution.Simple.Configure

@wolfgangwalther

Copy link
Copy Markdown
Contributor

Any of these that you'd want to fix as well or should we just merge as-is and have them marked as broken later?

@sternenseemann

sternenseemann commented Oct 13, 2025 •

Copy link
Copy Markdown
Member Author

No, don't care about any revdeps.

@wolfgangwalther
wolfgangwalther added this pull request to the merge queue Oct 13, 2025
Merged via the queue into NixOS:haskell-updates with commit 3051054 Oct 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: haskell General-purpose, statically typed, purely functional programming language 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 12.approvals: 1 This PR was reviewed and approved by one person.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants