23 Oct 2024 |
@luna-null:matrix.org | Also I want access to System.Random in ghci as well tho | 09:56:04 |
chreekat | nix-shell -p 'haskellPackages.ghcWithPackages (p: [p.pretty-simple p.random])' | 09:56:20 |
@luna-null:matrix.org | Oh shoot it works | 09:57:23 |
@luna-null:matrix.org | Ty! | 09:57:27 |
chreekat | https://nixos.org/manual/nixpkgs/stable/#haskell for more, although I hate to point there because it's mostly about how to build Haskell packages in nixpkgs, rather than building Haskell packages as a user of NixOS | 09:58:33 |
chreekat | It tries to do both | 09:58:48 |
chreekat | But the latter is a moving target. I mostly use flakes these days | 09:59:14 |
@luna-null:matrix.org | I can't get flakes to work properly. I wrapped one around my config.nix and that's it | 10:01:04 |
@luna-null:matrix.org | But yeah, would also like to figure out how to fix broken haskell packages in nixpkgs I keep seeing too | 10:02:10 |
jean-paul. | base64 1.0 was released 2024-01-11 but nixpkgs master from 2024-07-01 (00d80d138) still has 0.4.2.4. I know package updates take a little while to happen but that revision of nixpkgs has a hackage pin.json that says it was updated on 2024-05-20. I thought this would mean that revision of nixpkgs would have package versions from hackage as of 2024-05-20. What have I misunderstood? | 10:51:45 |
emily | perhaps Stackage was still on 0.4.2.4 at that point | 10:53:14 |
jean-paul. | oh no more layers of indirection. so nixpkgs gets updates based on what's on stackage? | 10:54:06 |
emily | AIUI the Nixpkgs Haskell package set is Stackage, overlayed with latest Hackage versions for everything that's not on Stackage. | 10:54:40 |
emily | Nixpkgs is a single set of package versions that are meant to work together, which matches the Stackage model | 10:54:54 |
emily | presumably either base64 1.0 broke stuff or they just hadn't gotten around to the bump yet | 10:55:38 |
jean-paul. | okay, that makes sense. it looks like 1.0 is in stackage now. I'm trying to see if I can find out when it was added. | 10:56:24 |
jean-paul. | I can't tell if https://www.stackage.org/package/base64/snapshots is a complete list or not. I suspect not? so it only suggests it was added to nightly sometime before 2024-08-20. but ... which stackage does nixpkgs track? nightly? | 10:57:11 |
emily | I think it is Nightly, but there my knowledge is exhausted. probably you could just check the latest nixpkgs-unstable to see which version it has now | 10:59:13 |
jean-paul. | found this endpoint and did a binary search to find the update to nightly happened 2024-02-02 - https://www.stackage.org/diff/nightly-2024-02-01/nightly-2024-02-02 | 10:59:57 |
jean-paul. | emily: thanks. and, assuming you're the same emily, thanks for the base64 package :) | 11:00:39 |
jean-paul. | mmm master@HEAD still has 0.4.2.4 | 11:01:50 |
emily | nope, that's a different Emily :D | 11:01:51 |
emily | we did just merge a haskell-updates into the current staging-next cycle and it still has 0.4.2.4 | 11:03:00 |
emily | so I guess we do track LTS | 11:03:05 |
emily | yeah: https://github.com/NixOS/nixpkgs/commit/41ffdf94002c38a2540a7d88dd2b7e57746627c1 | 11:03:29 |
jean-paul. | okay, good to know. totally not how I thought it worked. thanks again | 11:04:12 |
emily | if we just shipped latest Hackage versions I think tons of stuff would be broken | 11:05:06 |
emily | thanks to the Haskell ecosystem's exciting and forward-thinking attitude towards backwards compatibility | 11:05:21 |
jean-paul. | yes, seems likely I guess. | 11:05:27 |
emily | why we use Stackage LTS rather than nightlies I can't speak to – IIRC years ago the nightlies were often missing a bunch of stuff because of churn? the Nixpkgs Haskell maintainers would have to answer that one | 11:05:44 |