!RbXGJhHMsnQcNIDFWN:nixos.org

Haskell in Nixpkgs/NixOS

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

Load older messages


SenderMessageTime
29 Jun 2025
@le:4d2.orglevin

I'm working on a pull-request right now (https://github.com/NixOS/nixpkgs/pull/419877). In the last unresolved comment, I'm asked to get the tests for the package (haskore), which the pull-request originally disabled using dontCheck, working.

For these tests to work, I would need to have some files (https://archives.haskell.org/code.haskell.org/haskore/revised/core/src/Test/) in the src, which aren't there because they aren't listed in the cabal file under extra-source-files.

How would I resolve this? I couldn't really find anything...

07:41:19
@maralorn:maralorn.demaralornI think that is more a factual correction than a demand.09:00:26
@ners:nixos.devnersWould it be possible to cache the pkgsStatic GHC for aarch64 as well, in addition to x86_64 linux?16:26:11
@ners:nixos.devnersIn Hydra, that is. Currently we can get the musl GHC from haskell-updates for x86_64, but not for aarch64.16:26:45
@ners:nixos.devners * In Hydra, that is. Currently we can get the cached musl GHC from haskell-updates for x86_64, but not for aarch64. 16:26:53
@twesterhout:matrix.orgTom Westerhout

Following up on ners's point, there's this comment in release-haskell.nix: https://github.com/NixOS/nixpkgs/blob/dcc4da22e1bf5ed04220e7c5ddaa80abc0dee646/pkgs/top-level/release-haskell.nix#L409

# pkgsMusl is compiled natively with musl.  It is not
# cross-compiled (unlike pkgsStatic).  We can only
# natively bootstrap GHC with musl on x86_64-linux because
# upstream doesn't provide a musl bindist for aarch64.

I'm wondering if it still stands because I was able to build stuff locally

16:27:44
@twesterhout:matrix.orgTom Westerhout Ah wait, never mind. I can't read. I was reading pkgsMusl instead of pkgsStatic. For pkgsStatic, it says "times out on Hydra" 16:29:21
@twesterhout:matrix.orgTom Westerhout * Ah wait, never mind. I can't read. I was reading pkgsMusl instead of pkgsStatic. For pkgsStatic, it says "times out on Hydra". Is there any chance to get an exception there? 16:29:49
@alex:tunstall.xyzAlex
In reply to @ners:nixos.dev
Would it be possible to cache the pkgsStatic GHC for aarch64 as well, in addition to x86_64 linux?
My guess, without looking at Hydra, is that it could potentially break the path size limit.
17:17:56
@peterbecich:matrix.orgPeter Becichthis fixes it, rebuilding the tool as you suggested, review please: https://github.com/NixOS/nixpkgs/pull/42112721:58:21
30 Jun 2025
@ners:nixos.devners maralorn any thoughts? 09:51:30
@maralorn:maralorn.demaralornI am sadly quite unfamiliar with the policys around hydra timeouts. I guess there have to exist exceptions for something like chromium? But I think in Haskell world we never had one?10:06:57
@maralorn:maralorn.demaralorn* I am sadly quite unfamiliar with the policies around hydra timeouts. I guess there have to exist exceptions for something like chromium? But I think in Haskell world we never had one?10:07:10
1 Jul 2025
@sternenseemann:systemli.orgsterni ners: in principle the timeout is configurable per derivation. That comment is from 2021, though, so it may no longer be accurate for the builders we currently have. Currently, it doesn't make a difference since haskell-updates is not tested on aarch64-linux at all. I don't know when/if that is going to change. Also, haskell-updates is relatively disconnected from master these days, so you will get cache misses even on x86_64-linux (haskell-updates is for catching regressions primarily, not populating the binary cache). Feel free to open a PR adding jobs for pkgsStatic haskell to release.nix or maybe release-cross.nix which are intended for testing/populating binary cache on master. 09:54:04
@sternenseemann:systemli.orgsternigoing to merge h-u this evening probably16:01:25
@sternenseemann:systemli.orgsternistaging-next cycle is probably starting soon16:01:36
@maralorn:maralorn.demaralorn @sternenseemann:systemli.org At this point I have the feeling our rotation is kinda broken. 16:43:52
@maralorn:maralorn.demaralornAs in theoretically it's my two weeks to do the merging.16:44:47
@maralorn:maralorn.demaralornI mean I am not complaining.16:45:06
@maralorn:maralorn.demaralornBut I think in the longterm its better for everyone if we spread this on multiple shoulders.16:46:26
2 Jul 2025
@galaxy-nova:matrix.orgGalaxyNova changed their profile picture.19:50:08
3 Jul 2025
@sternenseemann:systemli.orgsterniI'm really bad at putting up my feet when it's not my turn unfortunately10:37:37
@maralorn:maralorn.demaralornYeah, but also since I got used to do doing the stuff I 1) got slower and 2) am not even sure I know how to do it now. 😆11:08:07
@woobilicious:matrix.orgwoobiliciousI'm trying to get a broken package to build (glft-codec) currently it's complaining about Aeson being too new, the currect version has a <2.2, but Aeson is on 2.2, I assume it'll just work if I can modify the symantic versioning but I can't figure out how to get it to work, I cloned the repo but flakes are complaining about the files missing (probably due to submodules), I wonder what I should do here before I dig myself in to a bigger hole.17:05:16
@maralorn:maralorn.demaralorn @woobilicious:matrix.org Apply haskell.lib.doJailbreak to your package. No need to clone or patch7 17:19:58
@woobilicious:matrix.orgwoobiliciousthanks I'll try that.17:21:09
@maralorn:maralorn.demaralornPlenty of examples in nixpkgs if you grep17:22:57
@woobilicious:matrix.orgwoobiliciousbrillant it worked, only issue was tests failing due to missing asset files, disabled tests and imports are working17:37:26
@phileas:asra.grsyd installs gentoo (they/them) joined the room.18:46:50
@phileas:asra.grsyd installs gentoo (they/them) Hey there! I hope some questions are appreciated. I'm trying to bump nix-tree (after asking the developer a while back to bump in hackage https://github.com/utdemir/nix-tree/issues/114#issuecomment-2888634183 ) assuming it would get updated eventually by nixos maintainers and the file says that you should use the regenerate-hackage-packages.sh but that fails on my local machine - I'd like to get in touch with the people maintaining that and assumed there was a Haskell Matrix channel maybe (there aren't a lot of GitHub issues around Hackage/Haskell lately if I'm not mistaken). 18:51:28

Show newer messages


Back to Room ListRoom Version: 6