!RbXGJhHMsnQcNIDFWN:nixos.org

Haskell in Nixpkgs/NixOS

701 Members
For discussions and questions about Haskell with Nix, cabal2nix and haskellPackages in nixpkgs | Current Docs: https://haskell4nix.readthedocs.io/141 Servers

Load older messages


SenderMessageTime
7 Sep 2025
@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
@artem.types:matrix.orgArtemoften times, GHC HEAD can't be compiled with a GHC just out of the support window (last three releases or so). I'd expect it to be a non-trivial projecct to make MHS compile GHC..20:32:24
@artem.types:matrix.orgArtem* often times, GHC HEAD can't be compiled with a GHC just out of the support window (last three releases or so). I'd expect it to be a non-trivial project to make MHS compile GHC...20:32:37
@emilazy:matrix.orgemilydoes GHC not use type families or generics?21:02:18
@emilazy:matrix.orgemily or implicit parameters or magic hash? 21:02:31
@emilazy:matrix.orgemilyhttps://discourse.haskell.org/t/microhs-and-hackage/12916/621:02:36
@emilazy:matrix.orgemilysounds unlikely to me21:02:43
@alex:tunstall.xyzAlexCan't know how much effort it is until someone actually tries.21:16:57
@emilazy:matrix.orgemilywell21:22:32
@maralorn:maralorn.demaralornLooking at all the hype that MicroHS is getting I can’t imagine that no one is thinking about it. 😄21:22:44
@emilazy:matrix.orgemilypeople tried to get even ancient GHC building with Hugs without success21:22:45
@emilazy:matrix.orgemilyso my prior is at least not totally uninformed21:23:03
@emilazy:matrix.orgemilythe sad thing about MicroHs is that AFAICT it won't offer a true from-source bootstrap21:23:21

Show newer messages


Back to Room ListRoom Version: 6