| 21 Jan 2025 |
João Moreira | * Okay, I was able to do it thanks to y'all. If anyone could please review, merge: https://github.com/NixOS/nixpkgs/pull/371934 | 21:37:52 |
João Moreira | I also want to package HVM3 in this same approach in the future. | 21:38:44 |
| oak 🏳️🌈♥️ changed their profile picture. | 22:35:12 |
| oak 🏳️🌈♥️ changed their profile picture. | 22:37:00 |
| 23 Jan 2025 |
| tobz619 joined the room. | 10:14:02 |
| 24 Jan 2025 |
KSP Atlas | is there a good way to use the Haskell VSCode extension on NixOS? It seems to depend on GHCup which can't be installed because it depends on a package marked as broken | 14:09:12 |
KSP Atlas | ill send this in the main haskell room too since i feel it would fit in both | 14:10:05 |
maralorn | KSP Atlas: That extension is usable without ghcup. Use the manual install option and install HLS via Nix. GHCUP does not offer working binaries for nixos so there is no point in fixing its build. | 14:26:15 |
maralorn | * KSP Atlas: That extension is usable without ghcup. Use the "manual install" option and install HLS via Nix. GHCUP does not offer working binaries for nixos so there is no point in fixing its build. | 14:26:27 |
Profpatsch | kspatlas: I just use it with haskellPackages and it works just fine | 14:28:44 |
maralorn | Install hls this way: https://nixos.org/manual/nixpkgs/unstable/#haskell-language-server | 14:29:20 |
maralorn | i.e. just install pkgs.haskell-language-server | 14:30:00 |
Profpatsch | pkgs.mkShell { buildInputs = [ pkgs.cabal-install pkgs.haskell-language-server ] } | 14:30:03 |
Profpatsch | Then start vscode from within the nix-shell | 14:30:13 |
maralorn | But I have to say. I just gave it a quick google. That is wildliy underdocumented for nixos. | 14:30:37 |
maralorn | The docs of the VSCode docs basically do not mention that it works without ghcup. | 14:31:01 |
Profpatsch | maralorn: mainly cause I wouldn’t expect it to just work :P | 14:31:06 |
maralorn | * The docs of the VSCode extension basically do not mention that it works without ghcup. | 14:31:10 |
maralorn | And I wrote a manual section about the minuatiae of picking the right hls but editor config is left as an excercise to the reader. ^^ | 14:32:08 |
Alex | In reply to @profpatsch:augsburg.one maralorn: mainly cause I wouldn’t expect it to just work :P AFAIK none of the other LSP clients try to install HLS themselves when it isn't missing, so if anything VSCode's "recommended" method is strange to me.
I could see someone asking "what if I need a custom-built GHC to [do some extremely niche thing]? ghcup's one doesn't work" | 15:05:08 |
Alex | * AFAIK none of the other LSP clients try to install HLS themselves when it is missing, so if anything VSCode's "recommended" method is strange to me.
I could see someone asking "what if I need a custom-built GHC to [do some extremely niche thing]? ghcup's one doesn't work" | 15:05:17 |
alexfmpe | In reply to @maralorn:maralorn.de And I wrote a manual section about the minuatiae of picking the right hls but editor config is left as an excercise to the reader. ^^ Been using vscode on the mac via home manager | 16:01:07 |
alexfmpe | Is nice | 16:01:12 |
alexfmpe | Never used ghcup | 16:02:11 |
alexfmpe | I just tell HLS to take it from PATH and nix shell on the relevant project | 16:02:34 |
Profpatsch | alex: It’s a pretty good default to install GHC if it’s missing imho | 16:23:17 |
Profpatsch | that’s what ghcup is for after all | 16:23:23 |
Profpatsch | on an average Ubuntu that probably works | 16:23:39 |
chreekat | Why did I only just now learn that cabal2nix https://path-to-commit.zip does exactly what it should do 😩 | 16:26:11 |
maralorn | Opinions whether it should actually do that differ. 😄 | 17:03:11 |