!RbXGJhHMsnQcNIDFWN:nixos.org

Haskell in Nixpkgs/NixOS

660 Members
For discussions and questions about Haskell with Nix, cabal2nix and haskellPackages in nixpkgs | Current Docs: https://nixos.org/manual/nixpkgs/unstable/#haskell | Current PR: https://github.com/nixos/nixpkgs/pulls?q=is%3Apr+is%3Aopen+head%3Ahaskell-updates | Maintainer Docs: https://github.com/NixOS/nixpkgs/blob/haskell-updates/pkgs/development/haskell-modules/HACKING.md | More Nix: #community:nixos.org | More Haskell: #haskell-space:matrix.org | Merger Schedule: https://cloud.maralorn.de/apps/calendar/p/H6migHmKX7xHoTFa/dayGridMonth/now | Join #haskell.nix:libera.chat for question about the alternative haskell.nix infrastructure132 Servers

Load older messages


SenderMessageTime
29 Jun 2025
@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
@phileas:asra.grsyd installs gentoo (they/them)
➜  nixpkgs git:(master) ✗ ./maintainers/scripts/haskell/regenerate-hackage-packages.sh --do-commit

Obtaining Hackage data
Generating compiler configuration
Starting hackage2nix to regenerate pkgs/development/haskell-modules/hackage-packages.nix ...
hackage2nix: user error (cannot parse cabal file /nix/store/pv9625kwkhfj0bsgqc374by44ycm88cz-unpacked-cabal-hashes/webdriver-precore/0.1.0.2/webdriver-precore.cabal)
hackage2nix: user error (cannot parse cabal file /nix/store/pv9625kwkhfj0bsgqc374by44ycm88cz-unpacked-cabal-hashes/ulid/0.3.3.0/ulid.cabal)
hackage2nix: user error (cannot parse cabal file /nix/store/pv9625kwkhfj0bsgqc374by44ycm88cz-unpacked-cabal-hashes/tpdb/2.8.1/tpdb.cabal)
hackage2nix: user error (cannot parse cabal file /nix/store/pv9625kwkhfj0bsgqc374by44ycm88cz-unpacked-cabal-hashes/singletons-base-code-generator/0.1/singletons-base-code-generator.cabal)
hackage2nix: user error (cannot parse cabal file /nix/store/pv9625kwkhfj0bsgqc374by44ycm88cz-unpacked-cabal-hashes/singletons-base/3.5/singletons-base.cabal)
hackage2nix: user error (cannot parse cabal file /nix/store/pv9625kwkhfj0bsgqc374by44ycm88cz-unpacked-cabal-hashes/pty-mcp-server/0.0.4.0/pty-mcp-server.cabal)
hackage2nix: user error (cannot parse cabal file /nix/store/pv9625kwkhfj0bsgqc374by44ycm88cz-unpacked-cabal-hashes/pms-ui-response/0.0.3.0/pms-ui-response.cabal)
hackage2nix: user error (cannot parse cabal file /nix/store/pv9625kwkhfj0bsgqc374by44ycm88cz-unpacked-cabal-hashes/pms-ui-request/0.0.3.0/pms-ui-request.cabal)
hackage2nix: user error (cannot parse cabal file /nix/store/pv9625kwkhfj0bsgqc374by44ycm88cz-unpacked-cabal-hashes/pms-ui-notification/0.0.2.0/pms-ui-notification.cabal)
hackage2nix: user error (cannot parse cabal file /nix/store/pv9625kwkhfj0bsgqc374by44ycm88cz-unpacked-cabal-hashes/pms-infrastructure/0.0.4.0/pms-infrastructure.cabal)
hackage2nix: user error (cannot parse cabal file /nix/store/pv9625kwkhfj0bsgqc374by44ycm88cz-unpacked-cabal-hashes/pms-infra-watch/0.0.2.0/pms-infra-watch.cabal)
hackage2nix: user error (cannot parse cabal file /nix/store/pv9625kwkhfj0bsgqc374by44ycm88cz-unpacked-cabal-hashes/pms-infra-procspawn/0.0.1.0/pms-infra-procspawn.cabal)
hackage2nix: user error (cannot parse cabal file /nix/store/pv9625kwkhfj0bsgqc374by44ycm88cz-unpacked-cabal-hashes/pms-infra-cmdrun/0.0.2.0/pms-infra-cmdrun.cabal)
hackage2nix: user error (cannot parse cabal file /nix/store/pv9625kwkhfj0bsgqc374by44ycm88cz-unpacked-cabal-hashes/pms-domain-service/0.0.3.0/pms-domain-service.cabal)
hackage2nix: user error (cannot parse cabal file /nix/store/pv9625kwkhfj0bsgqc374by44ycm88cz-unpacked-cabal-hashes/pms-domain-model/0.0.4.0/pms-domain-model.cabal)
hackage2nix: user error (cannot parse cabal file /nix/store/pv9625kwkhfj0bsgqc374by44ycm88cz-unpacked-cabal-hashes/pms-application-service/0.0.4.0/pms-application-service.cabal)
hackage2nix: thread blocked indefinitely in an MVar operation

18:51:46
@phileas:asra.grsyd installs gentoo (they/them) Reading the history of this channel I can see others also ran into thread blocked indefinitely in an MVar operation. I'm not sure if it the script is fully needed getting nix-tree usable again for others :). 18:53:34
@phileas:asra.grsyd installs gentoo (they/them)https://github.com/NixOS/nixpkgs/issues/409085 ah I didn't get follow up github notifications. https://github.com/NixOS/nixpkgs/pull/409117#issuecomment-289540137618:55:05
@phileas:asra.grsyd installs gentoo (they/them)Well at least I gave updating hackage packages a try for once, good to learn how that is done under the hood.18:57:00
@phileas:asra.grsyd installs gentoo (they/them) * Hey there! I've had some questions, I understand the situation now...
Old message/thread:
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).
19:00:25
@teoc:matrix.orgteo (they/he) I was profiling eval time of nixpkgs recently and I noticed that a lot of time was spent doing hasPrefix when evalling the haskell package set. I think this is caused by the hasPrefix call to check if stuff is part of amazonka and each call of hasPrefix re-checks if the needle is a path lol https://github.com/NixOS/nixpkgs/issues/419216
We could optimise the hasPrefix call, but maybe we should just add the list of amazonka packages to this file rather than traversing the entire haskell package set?
https://github.com/NixOS/nixpkgs/blob/a44903b927ab16b829a76f51f84bca02a7f89a0f/pkgs/development/haskell-modules/configuration-common.nix#L3352
19:19:35
@alexfmpe:matrix.orgalexfmpe

I was profiling eval time of nixpkgs

how does one even do this? I always wondered

20:24:38
@teoc:matrix.orgteo (they/he)
In reply to @alexfmpe:matrix.org

I was profiling eval time of nixpkgs

how does one even do this? I always wondered

This is what I used https://github.com/NixOS/nix/pull/13220
20:30:51
@alexfmpe:matrix.orgalexfmpeOoooh20:37:45

Show newer messages


Back to Room ListRoom Version: 6