!RbXGJhHMsnQcNIDFWN:nixos.org

Haskell in Nixpkgs/NixOS

717 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.org143 Servers

Load older messages


SenderMessageTime
7 Sep 2025
@emilazy:matrix.orgemily

a hidden message from the gods, the lost last great GHC version:

pkgs/development/haskell-modules/hackage-packages.nix
115923:      sha256 = "06y0pz0rny9pbm5lzc6n64zdf7139dgwbghc908vzndm6pcjrs5h";
00:23:53
@sternenseemann:systemli.orgsterni (he/him)trust me bro 6 more minor releases and GHC 9.0 is going to be good just 6 more00:37:44
@sternenseemann:systemli.orgsterni (he/him)20250907_02h36m10s_niri.png
Download 20250907_02h36m10s_niri.png
00:37:59
@sternenseemann:systemli.orgsterni (he/him)do you think this thunderbird bug is trying to tell me something00:38:07
@emilazy:matrix.orgemilyI looked at that screenshot before seeing the message and was like yeah that's slightly more than I expected but I guess there have been a lot of PR comments today00:42:16
@sternenseemann:systemli.orgsterni (he/him)I do not remember how I fixed this last time and it does not seem to be affected by restarting, so I'm stuck with you indefinitely10:50:38
@wolfgangwalther:matrix.orgWolfgang Walther Looks like corruption in the thunderbird profile. What helped me in this case was deleting the respective file in ~/.thunderbird/.../ImapMail/... and downloading it again. Of course.. only do that with IMAP, not with POP3. 11:00:10
@sternenseemann:systemli.orgsterni (he/him)Yeah, I think I deleted and redownloaded something last time.11:02:01
@maralorn:maralorn.demaralornHuh, a wild wolfgangwalther appeared.11:12:14
@bglgwyng:matrix.orgbglgwyng

I'm trying to let Nix fetch index-tarball and cabal use it.

repository hackage.haskell.org
  url: file://${./01-index.tar.gz}

But it didn't work. Has anyone tried something similar?

12:56:25
@bglgwyng:matrix.orgbglgwyngI read https://cabal.readthedocs.io/en/3.4/installing-packages.html this page, and I don't even sure that it's possible to configure a repository only with the index tarball only.12:56:50
@bglgwyng:matrix.orgbglgwyng

I just tried url: file://${repo} which contains 00-index.tar.gz and got

> cabal-install version 3.14.2.0
       > compiled using version 3.14.2.0 of the Cabal library
       > Warning: Caught exception during _mirrors lookup:res_query: does not exist
       > (Connection refused)
       > Warning: No mirrors found for
       > file:///nix/store/7kry9ps6yridc97gpp4kp8vcd99vlnyx-repo
       > /nix/store/7kry9ps6yridc97gpp4kp8vcd99vlnyx-repo/root.json: openBinaryFile: does not exist (No such file or directory)
13:42:39
@bglgwyng:matrix.orgbglgwyngFor some reasone, cabal behaves differently from my local cabal(not in Nix sandbox).13:43:12
@toonn:matrix.orgtoonn Builds are sandboxed by default on Linux, so network access outside of FODs is prohibited. 13:54:05
@b:chreekat.netchreekat yes, but that's an unrelated warning. @bglgwyng:matrix.org the error is that cabal is looking for a file 'root.json' next to the tarball. Still I think you'll run into other problems eventually... That root.json is part of a partial TUFT implementation that is gonna look at timestamps and isn't reproducible 14:00:30
@b:chreekat.netchreekat * yes, but that's an unrelated warning. @bglgwyng:matrix.org the error is that cabal is looking for a file 'root.json' next to the tarball. Still I think you'll run into other problems eventually... That root.json is part of a partial TUF implementation that is gonna look at timestamps and isn't reproducible 14:00:38
@bglgwyng:matrix.orgbglgwyngI expected network not gonna happen as I configure cabal to use only local repository. But it still happens and it's another problem. 14:08:59
@bglgwyng:matrix.orgbglgwyng As chreekat said, what confuses me is that cabal in Nix tries to read root.json while local cabal doesn't do so and successfully read the package index. 14:09:40
@bglgwyng:matrix.orgbglgwyng* I expected network access not gonna happen as I configured cabal to use only local repository. But it still happens and it's another problem. 14:15:11
@bglgwyng:matrix.orgbglgwyngTo provide context, I made deterministic cabal build from plan.json in Nix, and now am trying to generate plan.json deterministic in Nix.14:26:21
@bglgwyng:matrix.orgbglgwynghttps://github.com/haskell/cabal/issues/11185 seems relevant..15:14:19
@emilazy:matrix.orgemilyeverything good for me to hit the button on https://github.com/NixOS/nixpkgs/pull/440271 now that the unpins are moved out?16:04:13
@sternenseemann:systemli.orgsterni (he/him)can't believe we're on track to get this done in under a year19:36:22
@emilazy:matrix.orgemilyall I want for Christmas is someone to make Hadrian cross work20:20:27
@emilazy:matrix.orgemilyexcept not so quickly that I feel like I wasted all that time20:20:40
@alex:tunstall.xyzAlex At this point, would it be less effort to compile GHC with MicroHs?
(I haven't been trying in a while, need to revisit it when I get the time.)
20:21:21
@emilazy:matrix.orgemilyI doubt it, since I sorted the LLVM patches in a few days but AFAIK MicroHs is lacking several major type system extensions to even think about compiling GHC?20:22:23
@alex:tunstall.xyzAlex Last I checked, the main limitation was DataKinds being missing + a lot of GHC-specific code like the fast strings. 20:24:09
@alex:tunstall.xyzAlexI'm willing to rewrite the type checker if necessary, and the GHC problems can probably be fixed with a lot of tedious CPP.20:25:06
@nolduakali:matrix.orgAri Ade Supriyatna joined the room.20:26:56

Show newer messages


Back to Room ListRoom Version: 6