!RbXGJhHMsnQcNIDFWN:nixos.org

Haskell in Nixpkgs/NixOS

720 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
14 Nov 2025
@sternenseemann:systemli.orgsterni (he/him)I think pretty okay, but you'll know more after https://hydra.nixos.org/eval/182019521:47:06
17 Nov 2025
@dandart:matrix.orgUraraka ~ Ochaco changed their profile picture.23:36:49
18 Nov 2025
@dandart:matrix.orgUraraka ~ Ochaco changed their profile picture.01:17:52
@dandart:matrix.orgUraraka ~ Ochaco changed their profile picture.01:23:21
@dandart:matrix.orgUraraka ~ Ochaco changed their display name from Peri to Uraraka ~ Ochaco.05:23:28
19 Nov 2025
@alex:tunstall.xyzAlex Would any of the haskellPackages maintainers be interested in reviewing/merging this PR to add microhs package sets?
https://github.com/NixOS/nixpkgs/pull/460845
09:34:20
20 Nov 2025
@user12592851:matrix.orgJohn joined the room.04:57:16
@yzhyhalo:matrix.orgYevhen Zhyhalo joined the room.16:08:56
@magic_rb:matrix.redalder.orgmagic_rbanyone have any pointers for the cross compiling GHC itself issue? i would like to get some kind of GHC for armv6l if at all possible (would also help the riscv people)20:43:05
@alex:tunstall.xyzAlex
In reply to @magic_rb:matrix.redalder.org
anyone have any pointers for the cross compiling GHC itself issue? i would like to get some kind of GHC for armv6l if at all possible (would also help the riscv people)
Start from 9.4.
20:48:04
@alex:tunstall.xyzAlex9.4 can be done cross, >= 9.6 doesn't work (unless upstream fixed it?)20:48:28
@alex:tunstall.xyzAlex
In reply to @magic_rb:matrix.redalder.org
anyone have any pointers for the cross compiling GHC itself issue? i would like to get some kind of GHC for armv6l if at all possible (would also help the riscv people)

This repository builds GHC for RISC-V from an older commit of nixpkgs, but it should demonstrate how to do it.

https://github.com/AlexandreTunstall/nixos-riscv

20:49:57
@alex:tunstall.xyzAlex In particular, see modules/compilers/ghc.nix 20:50:40
@magic_rb:matrix.redalder.orgmagic_rbgoddamn armv6l-linux isnt even in the default cross set20:52:18
@magic_rb:matrix.redalder.orgmagic_rbthis will almost certainly go horribly, i doubt ghc even support armv6 officially20:54:53
@alex:tunstall.xyzAlexIt's possible that they used to but eventually dropped support for it.21:04:42
@magic_rb:matrix.redalder.orgmagic_rbIm currently building llvm, we'll see how much ghc explodes21:06:02
@magic_rb:matrix.redalder.orgmagic_rbArmv6 is ancient and i dont blame anyone for dropping it21:06:13
@alex:tunstall.xyzAlexOh, I might be confusing it with armv7l21:06:33
@magic_rb:matrix.redalder.orgmagic_rbArmv7l is old but less ancient21:06:45
@magic_rb:matrix.redalder.orgmagic_rbArmv7l actually is still supported by some stuff21:06:58
@magic_rb:matrix.redalder.orgmagic_rbsince im already talking about this in this room, anyone know how to conditionally override a package in an overlay when doing cross to a specific platform? I'd like to apply my overlay which cross boots GHC but only when crossing to armv6l-linux obviously21:23:55
@opna2608:matrix.orgPuna
In reply to @magic_rb:matrix.redalder.org
anyone have any pointers for the cross compiling GHC itself issue? i would like to get some kind of GHC for armv6l if at all possible (would also help the riscv people)
you could also bootstrap by packaging a ghc built by debian
21:43:03
@opna2608:matrix.orgPunaoh wait, v6... only if they have that one ig21:44:51
@magic_rb:matrix.redalder.orgmagic_rbi think itll build, its been building for 26 minutes now21:45:21
@magic_rb:matrix.redalder.orgmagic_rbwhether itll be funtional, who knows21:45:26
@magic_rb:matrix.redalder.orgmagic_rbif i want to upcompile to 984 id have to first go through 966 right? i recall something about them using extensions where are at least two minor releases old21:50:10
@opna2608:matrix.orgPuna cross-compiled haskell.compiler.ghc94 just segfaulted the moment i tried to do anything with it on ppc64. maybe it does better on armv6 though.
otherwise, trixie has a prebuilt ghc 9.6.6 for armel that you could yoink for bootstrapping, I think that should work for armv6?
https://packages.debian.org/trixie/ghc
21:58:01
@magic_rb:matrix.redalder.orgmagic_rbnot sure21:59:28
@magic_rb:matrix.redalder.orgmagic_rbarmel and armhf are not very descriptive21:59:35

Show newer messages


Back to Room ListRoom Version: 6