!RbXGJhHMsnQcNIDFWN:nixos.org

Haskell in Nixpkgs/NixOS

746 Members
For discussions and questions about Haskell with Nix, cabal2nix and haskellPackages in nixpkgs | Current Docs: https://haskell4nix.readthedocs.io/ | More Nix: #community:nixos.org | More Haskell: #haskell-space:matrix.org149 Servers

Load older messages


SenderMessageTime
3 Jun 2021
@roosemberth:orbstheorem.chRoosghc802 missing means that compiler version (I'm guessing 8.02) is not available in the nixpkgs available in NIX_PATH.06:03:23
@roosemberth:orbstheorem.chRoos You may want to take a look at pkgs/top-level/haskell-packages.nix to see the supported ghc versions. 06:04:30
@ahdyt:matrix.orgahdytYeah it's also unavailable in nixpkgs, cause it's too old, my ghc is 8.1006:04:51
@ahdyt:matrix.orgahdytSo how to "fix" this missing ghc? Updating the Stack.yaml?06:05:40
@roosemberth:orbstheorem.chRoosFrom what I can see, ghc865 seems to be the oldest available compiler.06:05:42
@roosemberth:orbstheorem.chRoos
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
@roosemberth:orbstheorem.chRoosIt is also possible to build with an older version of nixpkgs, but be ready to download the world :D06:06:54
@cdepillabout:matrix.orgcdepillabout

ahdyt: You generally have two options:

  1. Specify an older channel as Roos suggests (stack --nix-path nixpkgs=https://github.com/NixOS/nixpkgs/archive/8c2447fdee1af9310367b1ad7b63aed6217d3445.tar.gz build)
  2. Write a stack-shell.nix file: https://docs.haskellstack.org/en/stable/nix_integration/#using-a-custom-shellnix-file
06:09:20
@roosemberth:orbstheorem.chRoos cdepillabout: How would you go about finding a nixpkgs version that contains a given compiler? 06:10:02
@cdepillabout:matrix.orgcdepillabout *

ahdyt: You generally have two options:

  1. Specify an older channel that contains ghc802 as Roos suggests (stack --nix-path nixpkgs=https://github.com/NixOS/nixpkgs/archive/8c2447fdee1af9310367b1ad7b63aed6217d3445.tar.gz build)
  2. Write a stack-shell.nix file: https://docs.haskellstack.org/en/stable/nix_integration/#using-a-custom-shellnix-file
06:10:04
@roosemberth:orbstheorem.chRoos git grep is heavy :D 06:10:21
@cdepillabout:matrix.orgcdepillabout Roos: That's a lot trickier. Generally I just try old channels until I find something that works: https://status.nixos.org/ 06:11:05
@cdepillabout:matrix.orgcdepillabout Although 8.0 is pretty old at this point, I imagine nixos-19.09 might not have it. I guess you could try the release-19.03, release-18.09, etc branches on github. 06:12:10
@cdepillabout:matrix.orgcdepillaboutYou could in theory also search Hydra, but in practice that doesn't work for me.06:14:31
@cdepillabout:matrix.orgcdepillaboutThis times out for me: https://hydra.nixos.org/search?query=ghc80206:15:01
@_xmpp_qy=40xa0.uk:matrix.orgbqv changed their display name from bqv to qy.06:15:26
@_xmpp_qy=40xa0.uk:matrix.orgbqv changed their display name from qy to bqv.06:15:28
@roosemberth:orbstheorem.chRoosOfftopic: what kind of db backs hydra?06:15:50
@_xmpp_qy=40xa0.uk:matrix.orgbqv left the room.06:15:59
@_xmpp_qy=40xa0.uk:matrix.orgbqv joined the room.06:15:59
@_xmpp_qy=40xa0.uk:matrix.orgbqv changed their display name from qy to bqv.06:16:00
@_xmpp_qy=40xa0.uk:matrix.orgbqv left the room.06:16:12
@_xmpp_qy=40xa0.uk:matrix.orgbqv joined the room.06:16:13
@_xmpp_qy=40xa0.uk:matrix.orgbqv changed their display name from qy to bqv.06:16:14
@cdepillabout:matrix.orgcdepillaboutMy guess is that they have hired a guy who physically writes things down with paper and pencil.06:17:31
@_xmpp_qy=40xa0.uk:matrix.orgbqv changed their display name from bqv to qy.07:15:39
@_xmpp_qy=40xa0.uk:matrix.orgbqv changed their display name from qy to bqv.07:15:41
@_xmpp_qy=40xa0.uk:matrix.orgbqv left the room.07:18:04
@_xmpp_qy=40xa0.uk:matrix.orgbqv joined the room.07:18:04
@_xmpp_qy=40xa0.uk:matrix.orgbqv changed their display name from qy to bqv.07:18:07

Show newer messages


Back to Room ListRoom Version: 6