!RbXGJhHMsnQcNIDFWN:nixos.org

Haskell in Nixpkgs/NixOS

733 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.org148 Servers

Load older messages


SenderMessageTime
26 Nov 2024
@mequbic:matrix.orgiqubic (she/her) Hmm... I'm trying to compile a Haskell project with Nix and I'm getting an error related to Finite-Typelits. 17:41:23
@mequbic:matrix.orgiqubic (she/her) This is the output from nix log: https://dpaste.com/E5LC6FTTC 17:44:34
@mequbic:matrix.orgiqubic (she/her) I'm just telling Nix to use Cabal2Nix with this cabal file: https://dpaste.com/FY4FTT7VB 17:48:11
@mequbic:matrix.orgiqubic (she/her) Finite-Typelites should be using version 0.2.1.0 17:48:48
@mequbic:matrix.orgiqubic (she/her) * Finite-Typelites should be using version 0.2.1.0, but it isn't. 17:48:54
@mequbic:matrix.orgiqubic (she/her)Actually, according to https://hackage.haskell.org/package/finite-typelits NixOS is still using 0.1.6.017:49:57
@mequbic:matrix.orgiqubic (she/her)Annoying...17:50:01
@maralorn:maralorn.demaralorn
In reply to @emilazy:matrix.org
so I suppose we need pkgs/by-name/ab/c/abcd or something
Multi charakter filenames where a mistake. "pkgs/by-name/l/i/b/c/libc"
17:54:25
@maralorn:maralorn.demaralorn
In reply to @emilazy:matrix.org
so I suppose we need pkgs/by-name/ab/c/abcd or something
* Multi-character filenames where a mistake. "pkgs/by-name/l/i/b/c/libc"
17:54:33
@mequbic:matrix.orgiqubic (she/her) Is there anything I can do to get finite-typelits to work for me? 17:56:48
@maralorn:maralorn.demaralorn
In reply to @mequbic:matrix.org
Actually, according to https://hackage.haskell.org/package/finite-typelits NixOS is still using 0.1.6.0
That is consistent with your error message.
18:01:49
@maralorn:maralorn.demaralornIs finite-typelits in stackage?18:02:17
@mequbic:matrix.orgiqubic (she/her)It is.18:02:24
@mequbic:matrix.orgiqubic (she/her)Stackage has 0.2.1.018:02:40
@maralorn:maralorn.demaralornThen nixos shouldn’t be on 0.2.1.0.18:02:45
@maralorn:maralorn.demaralornStackage Nightly maybe.18:02:50
@mequbic:matrix.orgiqubic (she/her)I see. 18:03:10
@mequbic:matrix.orgiqubic (she/her)Is there a way I can get this to compile?18:03:17
@maralorn:maralorn.demaralornYes.18:03:24
@maralorn:maralorn.demaralorn An override. something between doJailbreak, .override { finite-typelits = fina.finite_typelits_0_2_1_0} and final.callHackage will help. 18:04:43
@maralorn:maralorn.demaralornIf you share some code I can be more specific.18:05:18
@mequbic:matrix.orgiqubic (she/her)This is my shell.nix: https://dpaste.com/E8U7NGMEY18:06:20
@mequbic:matrix.orgiqubic (she/her)I'm telling it to use this cabal file: https://dpaste.com/FY4FTT7VB18:06:43
@maralorn:maralorn.demaralornJust saying ghc910 is much less tested than ghc96, maybe you can fix this by using our default compiler version?18:07:52
@mequbic:matrix.orgiqubic (she/her)Oh, perhaps.18:08:25
@maralorn:maralorn.demaralornYes, as you can see here finite-typelits works fine on the default compiler: https://hydra.nixos.org/job/nixpkgs/haskell-updates/haskellPackages.finite-typelits.x86_64-linux18:08:45
@mequbic:matrix.orgiqubic (she/her)How do I switch to the default?18:08:56
@maralorn:maralorn.demaralornreplace packages.ghc910 by haskellPackages18:09:16
@mequbic:matrix.orgiqubic (she/her)Yeah, I'm trying that now.18:09:48
@mequbic:matrix.orgiqubic (she/her)That works!18:09:53

Show newer messages


Back to Room ListRoom Version: 6