| 26 Nov 2024 |
iqubic (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 |
iqubic (she/her) | This is the output from nix log: https://dpaste.com/E5LC6FTTC | 17:44:34 |
iqubic (she/her) | I'm just telling Nix to use Cabal2Nix with this cabal file: https://dpaste.com/FY4FTT7VB | 17:48:11 |
iqubic (she/her) | Finite-Typelites should be using version 0.2.1.0 | 17:48:48 |
iqubic (she/her) | * Finite-Typelites should be using version 0.2.1.0, but it isn't. | 17:48:54 |
iqubic (she/her) | Actually, according to https://hackage.haskell.org/package/finite-typelits NixOS is still using 0.1.6.0 | 17:49:57 |
iqubic (she/her) | Annoying... | 17:50:01 |
maralorn | 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 | 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 |
iqubic (she/her) | Is there anything I can do to get finite-typelits to work for me? | 17:56:48 |
maralorn | 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 | Is finite-typelits in stackage? | 18:02:17 |
iqubic (she/her) | It is. | 18:02:24 |
iqubic (she/her) | Stackage has 0.2.1.0 | 18:02:40 |
maralorn | Then nixos shouldn’t be on 0.2.1.0. | 18:02:45 |
maralorn | Stackage Nightly maybe. | 18:02:50 |
iqubic (she/her) | I see. | 18:03:10 |
iqubic (she/her) | Is there a way I can get this to compile? | 18:03:17 |
maralorn | Yes. | 18:03:24 |
maralorn | An override. something between doJailbreak, .override { finite-typelits = fina.finite_typelits_0_2_1_0} and final.callHackage will help. | 18:04:43 |
maralorn | If you share some code I can be more specific. | 18:05:18 |
iqubic (she/her) | This is my shell.nix: https://dpaste.com/E8U7NGMEY | 18:06:20 |
iqubic (she/her) | I'm telling it to use this cabal file: https://dpaste.com/FY4FTT7VB | 18:06:43 |
maralorn | Just saying ghc910 is much less tested than ghc96, maybe you can fix this by using our default compiler version? | 18:07:52 |
iqubic (she/her) | Oh, perhaps. | 18:08:25 |
maralorn | Yes, 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-linux | 18:08:45 |
iqubic (she/her) | How do I switch to the default? | 18:08:56 |
maralorn | replace packages.ghc910 by haskellPackages | 18:09:16 |
iqubic (she/her) | Yeah, I'm trying that now. | 18:09:48 |
iqubic (she/her) | That works! | 18:09:53 |