!RbXGJhHMsnQcNIDFWN:nixos.org

Haskell in Nixpkgs/NixOS

714 Members
For discussions and questions about Haskell with Nix, cabal2nix and haskellPackages in nixpkgs | Current Docs: https://haskell4nix.readthedocs.io/142 Servers

Load older messages


SenderMessageTime
3 Apr 2025
@hellwolf:matrix.orghellwolf *

fwiw,

$ git grep doctest\_0\_23\_0
pkgs/development/haskell-modules/configuration-nix.nix:      { inherit (super) doctest doctest\_0\_23\_0; }
pkgs/development/haskell-modules/configuration-nix.nix:    doctest\_0\_23\_0;

Does it mean, we would build with different doctest for different ghc versions?

20:11:50
@hellwolf:matrix.orghellwolf *

fwiw,

$ git grep doctest\_0\_23\_0
pkgs/development/haskell-modules/configuration-nix.nix:      { inherit (super) doctest doctest\_0\_23\_0; }
pkgs/development/haskell-modules/configuration-nix.nix:    doctest\_0\_23\_0;

Does it mean, we would build with different doctest for different ghc versions?

20:11:54
@maralorn:maralorn.demaralornPossibly, yeas20:14:54
@maralorn:maralorn.demaralorn* Possibly, yes20:14:57
@hellwolf:matrix.orghellwolf
       > Encountered missing or private dependencies:
       >     old-locale >=1.0.0.2 && <1.1, time <1.13
       > CallStack (from HasCallStack):
       >   dieWithException, called at libraries/Cabal/Cabal/src/Distribution/Simple/Configure.hs:1602:11 in Cabal-3.14.1.0-inplace:Distribution.Simple.Configure

Not sure how to fix this.

20:35:48
@maralorn:maralorn.demaralorn
In reply to @hellwolf:matrix.org
       > Encountered missing or private dependencies:
       >     old-locale >=1.0.0.2 && <1.1, time <1.13
       > CallStack (from HasCallStack):
       >   dieWithException, called at libraries/Cabal/Cabal/src/Distribution/Simple/Configure.hs:1602:11 in Cabal-3.14.1.0-inplace:Distribution.Simple.Configure

Not sure how to fix this.

Hard to say without context but that looks jailbreakable. Especially an upper bound on time is most likely harmless
20:38:49
@hellwolf:matrix.orghellwolflooks like no such package "haskellPackages.time"20:38:55
@hellwolf:matrix.orghellwolf

I thought I did it:

  HTF = doJailbreak super.HTF; # old-locale >=1.0.0.2 && <1.1, time <1.13
20:39:25
@hellwolf:matrix.orghellwolfoh, wrong package. let me fix.20:40:10
@maralorn:maralorn.demaralorn
In reply to @hellwolf:matrix.org
looks like no such package "haskellPackages.time"
time is bundled with ghc and thus has no own nix derivation
20:41:08
@hellwolf:matrix.orghellwolf cpphs = doJailbreak super.cpphs; # old-locale >=1.0.0.2 && <1.1, time <1.13 20:41:30
@hellwolf:matrix.orghellwolfthis didn't work. hmm20:41:36
@hellwolf:matrix.orghellwolfhttps://paste.tomsmeding.com/iPiTvG7z20:43:38
4 Apr 2025
@hellwolf:matrix.orghellwolfComing back to this, any reason why I cannot jailbreak cpphs? 07:43:15
@alex:tunstall.xyzAlex
In reply to @hellwolf:matrix.org
Coming back to this, any reason why I cannot jailbreak cpphs?
Does it use justStaticExecutables? Is the problematic dependency conditional? Is it a boot package?
07:51:08
@hellwolf:matrix.orghellwolf
       For full logs, run 'nix log /nix/store/kb0j5x1bs0p1h81j60s61habnxsjhvqm-cpphs-1.20.9.1.drv'.
error: 1 dependencies of derivation '/nix/store/avy1bn44is8mqjjvgv56kpwnix210587-HTF-0.15.0.2.drv' failed to build
error: 1 dependencies of derivation '/nix/store/7bkgrj0kzxdlj9r3d60rmvxx7srsjxpw-hlint-3.8.drv' failed to build
error: 1 dependencies of derivation '/nix/store/h1bl360r5fgnjirw366laa00k2cn3321-haskell-language-server-2.10.0.0.drv' failed to build
07:51:31
@hellwolf:matrix.orghellwolfdoes that say anything to your questions, Alex?07:51:47
@alex:tunstall.xyzAlex
In reply to @hellwolf:matrix.org
does that say anything to your questions, Alex?
It says no to Q3, which is a good start.
07:52:19
@hellwolf:matrix.orghellwolfgood. if it is not obvious from first sight to any of you. I will look into the actual package deeper later.07:53:12
@hellwolf:matrix.orghellwolfcount me as the tester/maintainer of the latest greatest GHC + HLS in haskell-updates :D07:53:39
@hellwolf:matrix.orghellwolf* count me as the tester/maintainer of the latest greatest GHC + HLS combo in haskell-updates :D07:53:48
@hellwolf:matrix.orghellwolf* count me as the tester/maintainer of the latest greatest HLS user in haskell-updates :D07:54:23
@hellwolf:matrix.orghellwolf* count me as the tester/maintainer of the latest greatest HLS tester/user in haskell-updates :D07:54:34
@alex:tunstall.xyzAlex
In reply to @hellwolf:matrix.org
cpphs = doJailbreak super.cpphs; # old-locale >=1.0.0.2 && <1.1, time <1.13
old-locale and time are conditional dependencies of cpphs on the latest revision in Hackage, so if either of those is unsolvable then that'll be why jailbreaking has no effect.
07:56:01
@alex:tunstall.xyzAlex
In reply to @hellwolf:matrix.org
cpphs = doJailbreak super.cpphs; # old-locale >=1.0.0.2 && <1.1, time <1.13

(The unrevised package description, which your build appears to be using, also has conditional dependencies.)

As an override, you could try using the latest revision, since it widens some bounds.

07:58:14
@hellwolf:matrix.orghellwolfI am not entirely following. Looking at https://github.com/hackage-trustees/malcolm-wallace-universe/blob/master/cpphs-1.20.9/cpphs.cabal how is old-locale required, since it is conditional?11:27:43
@maralorn:maralorn.demaralorn hellwolf: Uh, that is a tricky one: The time provided is newer than 1.13 so neither branch of the conditional works and cabal complains about the default one. You can remove the <1.13 on time with a patch (or via sed if you feel dirty enough), that should fix it. 11:31:23
@hellwolf:matrix.orghellwolfand jailbreak doesn't work because of (what)?11:33:37
@maralorn:maralorn.demaralornjailbreak never touches bounds which are behind a conditional. Because e.g. in this case that would completely break the detection which branch should be used.11:34:55
@hellwolf:matrix.orghellwolfhmm that is a flag based condition, though?11:36:11

Show newer messages


Back to Room ListRoom Version: 6