!RbXGJhHMsnQcNIDFWN:nixos.org

Haskell in Nixpkgs/NixOS

729 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.org146 Servers

Load older messages


SenderMessageTime
5 Apr 2025
@maralorn:maralorn.demaralornWe use the same hls derivation for every ghc major version.13:45:16
@nrs-status:matrix.orgthirdofmay18081814goya oh, do we have it somewhere in haskell.compiler.ghc910? 13:46:23
@maralorn:maralorn.demaralornIt works. You can install ghc 9.10 with HLS from nixos-unstable.13:46:01
@maralorn:maralorn.demaralornThat’s the ghc you want. Have a look at the nixpkgs manual to read how to install hls for that.13:47:42
@nrs-status:matrix.orgthirdofmay18081814goyanoted, thanks a lot!13:47:53
@maralorn:maralorn.demaralornNote, though: If you want to run a nix build of a particular package with ghc 9.10 it is likely that some dependencies are still broken. package support is more narrow on non-default versions.13:49:11
@nrs-status:matrix.orgthirdofmay18081814goyajust need to have the lsp work, I'm otherwise working with cabal atm13:50:42
@nrs-status:matrix.orgthirdofmay18081814goyabut I was eventually going to start looking into how the nix infra wrt cabal packaging works13:50:56
@divyaranjan:matrix.orgDivya
In reply to @sternenseemann:systemli.org
Divya: what problems are you running into with hadrian? We are basically treating it as a normal haskell tool, building it using the bindist we also use to bootstrap GHC and reusing our normal Haskell package set, this requires occasional fiddling with version constraints, but Hadrian is not too picky about dependency versions.
We wanted to bootstrap Hadrian, since GHC docs said it can be done :)
14:53:24
@sternenseemann:systemli.orgsterni (he/him)well what do you mean with bootstrap?15:43:35
@tinybronca:sibnsk.net@tinybronca:sibnsk.net left the room.15:47:52
@hellwolf:matrix.orghellwolfwhat does doDistribute do?17:29:22
@maralorn:maralorn.demaralorn
In reply to @hellwolf:matrix.org
what does doDistribute do?
controls whether a job on hydra gets created
17:41:28
@hellwolf:matrix.orghellwolfI see.17:42:10
@hellwolf:matrix.orghellwolfhttps://paste.tomsmeding.com/UvihEopY <-- also, the derivations of ghc-exactprints look weird, it's both library and executable, and sometimes libraryHaskellDepends is missing, and resulting build failures.17:42:59
@hellwolf:matrix.orghellwolfI am stuck here atm, building HLS for GHC91217:44:03
@hellwolf:matrix.orghellwolfsomething wrong with cabal2nix?17:48:23
@hellwolf:matrix.orghellwolf* could it be something wrong with cabal2nix for this package?17:48:29
@hellwolf:matrix.orghellwolf
  # A given major version of ghc-exactprint only supports one version of GHC.
  ghc-exactprint = doDistribute self.ghc-exactprint_1_9_0_0;
  ghc-exactprint_1_9_0_0 = addBuildDepends [
    self.Diff
    self.extra
    self.ghc-paths
    self.silently
    self.syb
    self.HUnit
  ] super.ghc-exactprint_1_9_0_0;

This is what's written in configuration-ghc-9.10.x

17:55:24
@hellwolf:matrix.orghellwolfalright, I copy this over but for 1_12_0_0 for ghc912, now it compiles.18:06:37
@hellwolf:matrix.orghellwolfbut now I am getting a GHC crash when building generic-lens. GREAT.18:06:50
@maralorn:maralorn.demaralorncabal2nix only creates derivation stubs if there is no valid build plan for our default ghc.18:20:10
@maralorn:maralorn.demaralornThat sounds hairy.18:20:26
@hellwolf:matrix.orghellwolfI got HLS built now, with a few of dontChecks and disabled plugins mostly related to ghc-parser (used by hlint, formolu, ormolu, etc.) Let me clean it up a bit and send a PR. While I am at it, maybe i should help with 9.8 too..18:34:29
@hellwolf:matrix.orghellwolf
$ ./result/bin/haskell-language-server-wrapper --version
haskell-language-server version: 2.10.0.0 (GHC: 9.12.2) (PATH: /nix/store/21vsy90gw6p5gc3rmzxgpvzg7kcrrghs-haskell-language-server-2.10.0.0/bin/haskell-language-server-wrapper)
18:35:29
@hellwolf:matrix.orghellwolfhere you go : https://github.com/NixOS/nixpkgs/pull/396423/files20:56:22
6 Apr 2025
@hellwolf:matrix.orghellwolf

checking https://github.com/cdepillabout/nix-haskell-updates-status

Which of the "Maintained Linux packages with build failure" I could hrlp?

06:27:30
@hellwolf:matrix.orghellwolf* checking https://github.com/cdepillabout/nix-haskell-updates-status Which of the "Maintained Linux packages with build failure" I could help with? 06:27:42
@maralorn:maralorn.demaralorn hellwolf: That actually looks pretty finished. 09:26:49
@maralorn:maralorn.demaralornI will have to fix the nix-output-monitor build.09:26:59

Show newer messages


Back to Room ListRoom Version: 6