!RbXGJhHMsnQcNIDFWN:nixos.org

Haskell in Nixpkgs/NixOS

722 Members
For discussions and questions about Haskell with Nix, cabal2nix and haskellPackages in nixpkgs | Current Docs: https://haskell4nix.readthedocs.io/ | More Nix: #community:nixos.org | More Haskell: #haskell-space:matrix.org144 Servers

Load older messages


SenderMessageTime
11 Jan 2025
@alexfmpe:matrix.orgalexfmpehmm, well I'm overriding on configuration-common.nix, but 9.8 is the default now on haskell-updates are you saying there's a bootstrap package set separate from haskellPackages ?04:44:58
@alex:tunstall.xyzAlex
  1. Fetch bindist
  2. Build Hadrian using bindist
  3. Build GHC using bindist
  4. Build selected packages

Steps 2 and 4 will produce different derivations for each package. You should find that they have different GHC versions in their inputs.

04:48:21
@alex:tunstall.xyzAlexTL;DR: Yes.04:50:28
@sternenseemann:systemli.orgsterni (he/him) alexfmpe: there's no separate bootstrap set which is why it's rebuilt 13:18:31
@sternenseemann:systemli.orgsterni (he/him)I've tested a fix for happy already, will push that in a second13:30:25
@sternenseemann:systemli.orgsterni (he/him)https://hydra.nixos.org/eval/181096714:30:33
@sigmasquadron:matrix.orgSigmaSquadron changed their display name from SigmaSquadron (Away until 2025-01-11) to SigmaSquadron.15:06:54
@alexfmpe:matrix.orgalexfmpenice, going to get miso/reflex-dom building again - there's a few patches now failing from upstreaming and whatnot15:19:35
@alexfmpe:matrix.orgalexfmpepsqueues is a dep of both and also hitting the tasty-quickcheck issue, added a jailbreak next to your hashable one15:20:06
@alexfmpe:matrix.orgalexfmperebased your recent pushes, rebuilding hackage again15:20:23
@oak:universumi.fioak 🏳️‍🌈♥️ changed their profile picture.16:44:58
@oak:universumi.fioak 🏳️‍🌈♥️ removed their profile picture.16:46:07
@oak:universumi.fioak 🏳️‍🌈♥️ set a profile picture.16:46:35
@alexfmpe:matrix.orgalexfmpe for some reason, this #if evaluates to true when building haskellPackages.reflex from haskell-updates, but not when building with cabal
https://github.com/reflex-frp/reflex/blob/b1767c47b47aae2e314166b1c6f4adefeb0e5128/src/Data/AppendMap.hs#L33
I'm using witherable 0.5 in both cases
18:32:56
@sternenseemann:systemli.orgsterni (he/him)cabal-install is known for circumventing the prepolutade package db are you sure it's the same version in both cases?19:12:35
@alexfmpe:matrix.orgalexfmpehmm I saw witherable-0.5 getting downloaded/built by cabal, and haskellPackages.witherable comes out as 0.5 as well19:52:34
@alexfmpe:matrix.orgalexfmpenotably, it's the nixpkgs version that's doing the unexpected thing and including those imports19:53:13
@alexfmpe:matrix.orgalexfmpehow can it fail the (0,3,2) check?19:53:33
@alexfmpe:matrix.orgalexfmpeit's acting as if witherable < 0.3.219:53:59
@alexfmpe:matrix.orgalexfmpeeven weirder, the .cabal has witherable > 0.4 in there19:54:53
@alexfmpe:matrix.orgalexfmpeso this should be dead code in the first place19:55:03
@alexfmpe:matrix.orgalexfmperelated question: I submitted a PR removing it, but over on nixpkgs keep failing to apply the other hackage->master patches so this one doesn't get conflicts do we overrideSrc or wait for a release?19:56:38
@alexfmpe:matrix.orgalexfmpe* even weirder, the .cabal has witherable >= 0.4 in there20:04:00
@alexfmpe:matrix.orgalexfmpeactually nevermind, managed to workaround with a simple postPatch sed, good enough until the release 20:33:02
@sternenseemann:systemli.orgsterni (he/him) alexfmpe: ig you could generate a cabal freeze file to verify?! 21:46:00
@alexfmpe:matrix.orgalexfmpeon the non-nixpkgs build?21:46:31
@sternenseemann:systemli.orgsterni (he/him)yes21:48:19
12 Jan 2025
@nakibrayane:matrix.orgRayane Nakib (ريّان نقيب) joined the room.12:40:13
13 Jan 2025
@m1-s:matrix.orgm1-s

Hi, i am working on a project where I just updated from nix 22.11 to 24.11. this project uses a haskell library that does ffi stuff. since the update I am getting the following error when trying to compile something that uses the ffi haskell library:

       > <no location info>: error:
       >     /nix/store/ig69mqspa9a7gmkib1p05rndsfmp5qjl-mypackage-0.1.0/lib/ghc-9.6.6/lib/x86_64-linux-ghc-9.6.6/mypackage-0.1.0-GG7CxsqkGDRPE7u83aSVw-ghc9.6.6.so: undefined symbol: my_function

Anyone has a clue what broke or how to debug this? Did anything change in the way nix/ghc handles ffi things since nix 22.11?

08:05:19
@m1-s:matrix.orgm1-sit builds in the dev shell with cabal. just not in nix. so i must be missing some flags in my nix build. dont know which though.08:17:12

Show newer messages


Back to Room ListRoom Version: 6