!RbXGJhHMsnQcNIDFWN:nixos.org

Nix Haskell

611 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 infrastructure123 Servers

Load older messages


SenderMessageTime
14 Oct 2024
@fgaz:matrix.orgfgaz hellwolf: I recently wrote https://sr.ht/~fgaz/get-tested4nix/ to automate this kind of setup, you might find it useful 19:35:48
@emilazy:matrix.orgemily
In reply to @hellwolf:matrix.org

Also, this is my new observation:

(haskell.compiler.${ghcVer}.override { enableDocs = false; }) mises the cache -> I guess the nix expression is not optimal in that docs disabled shouldn't cause a rebuild ghcVer from the previous ghcVer.

Downloading more from cache is still better than rebuilding.. so I fallback

what you want would require ca-derivations at the least
19:40:20
@emilazy:matrix.orgemilyor, hm, maybe i misunderstand19:40:30
@hellwolf:matrix.orghellwolf
In reply to @fgaz:matrix.org
hellwolf: I recently wrote https://sr.ht/~fgaz/get-tested4nix/ to automate this kind of setup, you might find it useful
Very cool, I will check it out.
19:47:00
@hellwolf:matrix.orghellwolf
In reply to @emilazy:matrix.org
what you want would require ca-derivations at the least
what I meant is that I expected the docs and the binary are independent derivations, and the parent derivation simply combines them. Hence, when I don't want docs, it shouldn't trigger a rebuild of the ghc binary.
19:48:29
@emilazy:matrix.orgemilyright19:49:12
@emilazy:matrix.orgemilyI don't know how easy GHC's build system makes that19:49:18
@maralorn:maralorn.demaralorn
In reply to @alexfmpe:matrix.org
guess 12.2 is the first plausible "uh oh" ?
Huh, I guess we need to lobby ghchq to bump to 10 before 9.20. 😄
20:07:25
@alexfmpe:matrix.orgalexfmpeI just want non associative versioning20:08:46
@alexfmpe:matrix.orgalexfmpeHow hard can it be to add _ or whatever delimiter20:09:09
@maralorn:maralorn.demaralornWell, no that hard. But probably harder than convincing upstream that it would be pain. 😄20:09:43
@maralorn:maralorn.demaralornNo, we should probably just do it. I actually even had a reasonable replacement strategy. It just would need to be implemented.20:10:40
@maralorn:maralorn.demaralorn * Well, not that hard. But probably harder than convincing upstream that it would be pain. 😄20:10:48
@hellwolf:matrix.orghellwolfwhat would make GHC 10 instaed of GHC 9?20:12:12
@hellwolf:matrix.orghellwolfmaybe that would be the right timing for cleaning up this technical debt?20:12:27
@emilazy:matrix.orgemily
In reply to @alexfmpe:matrix.org
How hard can it be to add _ or whatever delimiter
FWIW, pkg-name_ver_sion is the Nixpkgs standard
20:13:39
@emilazy:matrix.orgemilybut of course many things do not follow it20:13:44
@emilazy:matrix.orgemilyit's documented in the manual20:13:46
@emilazy:matrix.orgemily so ghc_8_10 is "the right thing" 20:13:58
@hellwolf:matrix.orghellwolfghc10 is probably when ghc is basically agda20:14:36
@emilazy:matrix.orgemily
In reply to @maralorn:maralorn.de
Huh, I guess we need to lobby ghchq to bump to 10 before 9.20. 😄
(hey, another reason to ditch those old GHCs before they collide, no? :p )
20:14:41
@maralorn:maralorn.demaralorn
In reply to @emilazy:matrix.org
(hey, another reason to ditch those old GHCs before they collide, no? :p )
I think even having the same attribute used for a completely different version in living memory would be a sin.
20:15:47
@maralorn:maralorn.demaralornJust in: New deprecation policy remove old versions when the version number collides with a new release.20:16:50
@maralorn:maralorn.demaralorn"Version number, you had on job!" 🤦20:18:11
@maralorn:maralorn.demaralorn * 20:18:23
@maralorn:maralorn.demaralornI mean I guess incorrect uses of Monoid instances is kinda a theme in the Haskell world...20:19:28
@rosscomputerguy:matrix.orgTristan RossJust don't package multiple patch releases heh, it's what we do for Flutter so we can have 3.24 be `flutter324`.20:22:52
@alexfmpe:matrix.orgalexfmpe3.24 or 32.4 ?20:49:14
@alexfmpe:matrix.orgalexfmpeEven if humans can tell by context, that will wreak havok on automation20:50:12
@maralorn:maralorn.demaralornWell, we are already kinda paying that price. otoh its not super terrible, because normally in code you can just access ghc.version which is properly formatted20:57:54

Show newer messages


Back to Room ListRoom Version: 6