!RbXGJhHMsnQcNIDFWN:nixos.org

Haskell in Nixpkgs/NixOS

722 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.org144 Servers

Load older messages


SenderMessageTime
24 Jan 2025
@b:chreekat.netchreekati don't wanna know :D17:06:19
@b:chreekat.netchreekat But I do wanna know how to ... do the thing... I have done a dozen times.... and override packages down in the dependency tree 17:08:54
@maralorn:maralorn.demaralornoverrideScope?17:12:35
@b:chreekat.netchreekatnever used it before17:18:22
@b:chreekat.netchreekatnah I need the haskellPackages.override thing I think17:24:05
@tobioloke:matrix.orgtobz619
In reply to @alexfmpe:matrix.org
I just tell HLS to take it from PATH and nix shell on the relevant project
does this work over different ghc versions?
17:26:22
@b:chreekat.netchreekat tobz619: nah, you need to pull hls and ghc from the same nixpkgs pin for them to work together 17:40:55
@maralorn:maralorn.demaralorn chreekat: That’s true. But a sensible nix-shell will do exactly that. So yeah, tobz619 That totally works for different ghc versions. 17:42:31
@maralorn:maralorn.demaralorn Huh, maybe a misunderstanding. I am pretty sure alexfmpe meant to set the PATH with the HLS via the nix-shell. 17:43:40
@maralorn:maralorn.demaralorn tobz619: See the above linked nixpkgs manual entry on how to install the right hls for your ghc version. 17:44:02
@b:chreekat.netchreekat(alexmfpe's method works fine if you use the same ghc for a bunch of stuff. I myself have a default ghc/hls in my env)17:47:21
@b:chreekat.netchreekathuh, i'm trying to use a certain nixpkgs pin that uses lts-22.4 for Reasons, but i'm getting a different version of the tls package than I expect17:48:11
@b:chreekat.netchreekatah yes, naturally I wasn't using the nixpkgs pin I thought I was17:50:10
@b:chreekat.netchreekatlo, that wasn't the problem17:50:41
@b:chreekat.netchreekat854b5340529bef34fe98b8ed91eff95ee5bf03fd , expected tls-1.8.0, got tls-1.6.017:56:02
@b:chreekat.netchreekatprobably still getting the wrong nixpkgs pin somehow, but I don't know how17:56:44
@b:chreekat.netchreekatahh, it's a boot thingy isn't it17:58:01
@b:chreekat.netchreekater, no, but another package require <1.817:59:00
@b:chreekat.netchreekatso forcing 1.8 doesn't work, which is fine, because I should probably understand why it's not 1.8 in the first place17:59:17
@b:chreekat.netchreekatnot tonight though!17:59:28
@hellwolf:matrix.orghellwolfI just fixed the echidna build 20:49:42
@hellwolf:matrix.orghellwolfam I in time for the next haskell-updates, still?20:49:55
@hellwolf:matrix.orghellwolfoh, haskell-updates is moving to 9.821:23:26
@hellwolf:matrix.orghellwolfthat breaks hevm21:23:30
@hellwolf:matrix.orghellwolfhttps://github.com/NixOS/nixpkgs/pull/376526/files22:20:34
25 Jan 2025
@hellwolf:matrix.orghellwolfwhen I use haskellPackages.mkDerivation, I can't override nativeBuildInputs, where I want to add makeWrapper12:22:31
@hellwolf:matrix.orghellwolfwhat's the best practice you recommend me to do here?12:22:41
@hellwolf:matrix.orghellwolfI could wrap the derivation in another std derivation where I do wrapProgram. But I am not sure if that's the best approach.12:23:06
@hellwolf:matrix.orghellwolf

looking into pkgs/development/haskell-modules/generic-builder.nix, it seems to me this is the best way:

  executableToolDepends = [
    makeWrapper
  ];
12:26:43
@hellwolf:matrix.orghellwolf *

looking into pkgs/development/haskell-modules/generic-builder.nix, it seems to me this is the best way:

  executableToolDepends = [
    makeWrapper
  ];

Then I can do wrapProgram in postInstall

12:27:05

Show newer messages


Back to Room ListRoom Version: 6