!RbXGJhHMsnQcNIDFWN:nixos.org

Haskell in Nixpkgs/NixOS

730 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.org146 Servers

Load older messages


SenderMessageTime
26 Apr 2025
@aleksana:mozilla.orgFind me at aleksana:qaq.liWhat does this mean11:28:17
@sternenseemann:systemli.orgsterni (he/him) it's named like that because alongside common-make-native-bignum.nix there would be common-make-integer-simple.nix, but since we only have one GHC that would use it (8.10.7.nix) I never bothered to make a common file 11:29:17
@sternenseemann:systemli.orgsterni (he/him)and they are basically the same, they just renamed integer-simple to native-bignum at some point, so some inputs in the nix expression change which makes it annoying to make a common expression for both11:30:01
@sternenseemann:systemli.orgsterni (he/him)(it would be kind of a good project to make some cross compiled GHCs and upload them to tarballs.nixos.org before 25.11, doesn't look like we can keep around GHC 9.4 for that long)11:32:32
@aleksana:mozilla.orgFind me at aleksana:qaq.li
In reply to @sternenseemann:systemli.org
(it would be kind of a good project to make some cross compiled GHCs and upload them to tarballs.nixos.org before 25.11, doesn't look like we can keep around GHC 9.4 for that long)
But the current expression is a bunch of spaghetti and I don't think I can jump across all the cases as I'm not the writer of that
11:35:30
@aleksana:mozilla.orgFind me at aleksana:qaq.liPlus I don't understand haskell yet11:35:45
@sternenseemann:systemli.orgsterni (he/him)Yeah, I did not mean you should do it.11:36:01
@qyliss:fairydust.spaceAlyssa Rossthe most pragmatic approach might be to focus on other loongarch64 things for now and hope upstream has bootstrap binaries before too long.11:36:32
@aleksana:mozilla.orgFind me at aleksana:qaq.liI'm bootstrapping from ghc package in debian ports, hopefully this could work11:37:21
@sternenseemann:systemli.orgsterni (he/him)As I was saying, Adam Joseph did try this in the past and concluded that it's too big a pain to get to work11:38:27
@sternenseemann:systemli.orgsterni (he/him)but it may be possible, not sure. 11:38:32
@aleksana:mozilla.orgFind me at aleksana:qaq.liI can also let loongson guys to compile an ideal binary tarball if it really doesn't work11:39:58
@emilazy:matrix.orgemilywe don't put anything not built by Hydra on tarballs.nixos.org12:01:20
@emilazy:matrix.orgemily I guess just fetchurling something wouldn't be the end of the world though, we already have some mystery-meat third-party binaries in tree… 12:01:38
@emilazy:matrix.orgemilybut we'd really prefer to avoid it if at all possible of course12:01:53
@emilazy:matrix.orgemilybinaries from Hydra >> binaries from upstream >>> all other binaries12:02:16
@aleksana:mozilla.orgFind me at aleksana:qaq.li
=> nix-build -A pkgsCross.loongarch64-linux.haskell.packages.ghc984.ghc
evaluation warning: build: x86_64-linux host: x86_64-linux target: loongarch64-linux
this derivation will be built:
  /nix/store/dpwqr9489b1mkgmili5fpxci31if3n2a-loongarch64-unknown-linux-gnu-ghc-9.8.4.drv

Well

12:49:15
@emilazy:matrix.orgemily huh. host should be loongarch64-linux unless you use buildPackages? 12:50:47
@emilazy:matrix.orgemilysplicing issue maybe?12:51:02
@aleksana:mozilla.orgFind me at aleksana:qaq.li
In reply to @emilazy:matrix.org
splicing issue maybe?
Very likely
12:51:29
@aleksana:mozilla.orgFind me at aleksana:qaq.li Because the attribute is referenced from buildPackages: https://github.com/NixOS/nixpkgs/blob/master/pkgs/top-level/haskell-packages.nix#L482 13:04:18
@sternenseemann:systemli.orgsterni (he/him) haskell.packages.*.ghc is like stdenv.cc 13:04:56
@sternenseemann:systemli.orgsterni (he/him) haskell.compiler.* would be cross compiled 13:05:10
@emilazy:matrix.orgemily hm, wouldn't it make more sense to use buildPackages explicitly for that? 13:08:49
@emilazy:matrix.orgemily I assume that pkgsCross.foo.* is going to have host foo unless * starts with buildPackages. (with stdenv as an unfortunate exception) 13:09:20
@emilazy:matrix.orgemilyI guess there are probably other unfortunate exceptions already though.13:09:31
@emilazy:matrix.orgemilyWTB universe without the GNU idea of cross…13:10:01
@sternenseemann:systemli.orgsterni (he/him)as said, it’s like stdenv with all the weirdness involved, this is probably the best way to do it. You can’t even do an equivalent of libc/cc split13:26:18
@aleksana:mozilla.orgFind me at aleksana:qaq.li I think I'm on the right track now. The performance impact of enableUnregisterised is really huge 14:36:42
@ashinnv:matrix.orgGrand Warden Mayhem, Punisher of Deer changed their display name from Magnolia Mayhem to Magnolia Mayhem: Rallycar Mailman.14:40:29

Show newer messages


Back to Room ListRoom Version: 6