| 2 Jun 2021 |
sterni (he/him) | No, but they we were even with master when they were green, so all should be well | 22:31:54 |
maralorn | Ah, yeah. | 22:32:06 |
maralorn | We need something maintained and mergeable on status.nixos.org.^^ | 22:32:58 |
sterni (he/him) | heh | 22:38:23 |
| 3 Jun 2021 |
| bqv changed their display name from bqv to qy. | 00:50:32 |
| bqv changed their display name from qy to bqv. | 00:50:33 |
| ahdyt joined the room. | 05:59:29 |
ahdyt | how's stack in haskell? I can't just use nix-shell -p stack and build stack project? it's says missing ghc802 which is unavailable anymore in nixpkgs I guess?
Or I mean, how to build haskell stack project in nix way? | 06:00:46 |
Roos | Afair, the GHC version is fixed in the stack distribution of your project. Stack is integrated with nix to use the corresponding attribute (e.g. ghc802) as a function of the compiler in the stack distribution. | 06:02:19 |
ahdyt | * how's stack in haskell? I can't just use nix-shell -p stack and build stack project? it's says missing ghc802 which is unavailable anymore in nixpkgs I guess?
Or I mean, how to build haskell stack project in nix way?
this is the example stack project I wanna build https://github.com/akhesaCaro/haskell-breakout | 06:02:24 |
Roos | ghc802 missing means that compiler version (I'm guessing 8.02) is not available in the nixpkgs available in NIX_PATH. | 06:03:23 |
Roos | You may want to take a look at pkgs/top-level/haskell-packages.nix to see the supported ghc versions. | 06:04:30 |
ahdyt | Yeah it's also unavailable in nixpkgs, cause it's too old, my ghc is 8.10 | 06:04:51 |
ahdyt | So how to "fix" this missing ghc? Updating the Stack.yaml? | 06:05:40 |
Roos | From what I can see, ghc865 seems to be the oldest available compiler. | 06:05:42 |
Roos | In reply to @ahdyt:matrix.org So how to "fix" this missing ghc? Updating the Stack.yaml? Yes, that is an alternative. | 06:05:57 |
Roos | It is also possible to build with an older version of nixpkgs, but be ready to download the world :D | 06:06:54 |
cdepillabout | ahdyt: You generally have two options:
- Specify an older channel as Roos suggests (
stack --nix-path nixpkgs=https://github.com/NixOS/nixpkgs/archive/8c2447fdee1af9310367b1ad7b63aed6217d3445.tar.gz build)
- Write a
stack-shell.nix file: https://docs.haskellstack.org/en/stable/nix_integration/#using-a-custom-shellnix-file
| 06:09:20 |
Roos | cdepillabout: How would you go about finding a nixpkgs version that contains a given compiler? | 06:10:02 |