!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/144 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
23 Apr 2025
@sternenseemann:systemli.orgsterni (he/him)Just cherry pick I have a feeling we may doing that a fair bit for 24.11 stuff11:54:52
@maralorn:maralorn.demaralorn24.11?12:33:40
24 Apr 2025
@jktr:0x16.de@jktr:0x16.de left the room.01:16:55
@hy84coky:fau.deLeon Vatthauer set a profile picture.12:50:31
@dragospe:matrix.orgPeter Dragos joined the room.14:13:49
@dragospe:matrix.orgPeter Dragos

Hey folks, I'm working on getting haskellPackages.accelerate building. I've gotten it building locally against 24.11.

I'd like to make a PR for nixpkgs, so I've checked out nixpkgs/haskell-updates and am editing common-configuration.nix with

  accelerate = overrideSrc {
    src = pkgs.fetchFromGitHub {
      owner = "AccelerateHS";
      repo = "accelerate";
      rev = "3f681a5091eddf5a3b97f4cd0de32adc830e1117";
      sha256 = "sha256-tCcl7wAls+5cBSrqbxfEAJngbV43OJcLJdaC4qqkBxc=";
    };
  } super.accelerate;

But when I do this, I get

double-conversion >=2.0, formatting >=7.0, microlens >=0.4

if I go into the nix repl, :lf, and inspect nix-repl> legacyPackages.x86_64-linux.haskellPackages.microlens.version I get "0.4.13.1" which should be compatible; and this is the same for double-conversion and formatting as well. Do I need to do something different to get the dependencies picked up properly?

14:14:29
@TuXic:matrix.orgTuXic joined the room.14:21:59
@maralorn:maralorn.demaralorn Peter Dragos: Its likely that those dependencies were not present in the version of accelerate which is in that nixpkgs checkout. You are reusing the derivation for another version of the package there, just swapping the src. 14:37:35

Show newer messages


Back to Room ListRoom Version: 6