!RbXGJhHMsnQcNIDFWN:nixos.org

Haskell in Nixpkgs/NixOS

729 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.org146 Servers

Load older messages


SenderMessageTime
22 Nov 2024
@emilazy:matrix.orgemilyah, I guess this is about substituters, sorry22:08:53
23 Nov 2024
@maralorn:maralorn.demaralorn sterni: I am trying to understand the current state of the haskell-updates branch. I guess we could just merge it into staging at any time if we have enough visibility, right? 10:15:39
@maralorn:maralorn.demaralornApparently the PR has merged conflicts right now, but that’s just conflicts between master and staging which need to be resolved on staging?10:16:32
@maralorn:maralorn.demaralorn * Apparently the PR has merge conflicts right now, but that’s just conflicts between master and staging which need to be resolved on staging?10:16:38
@maralorn:maralorn.demaralorn lxsameer: Had a look at the cabalfreeze2nix repo. Looks good. Code for the updateHackage thing seems to exist redundantly. 15:44:34
@lxsameer:matrix.orglxsameer Yeah i'm still working on it. Added cabal2nix lib to generate the derivations. But it can be pretty slow. So trying to do in using mapConcurrently. So far having an issue with limitting the concurrent jobs. 15:47:21
@maralorn:maralorn.demaralornThere are libs which offer bounded versions of map concurrently.17:51:18
@maralorn:maralorn.demaralornE.g. unliftio I think.17:51:28
@lxsameer:matrix.orglxsameeroh cool, I'll have a look18:03:28
@lxsameer:matrix.orglxsameeroh thisi seems cool https://www.stackage.org/haddock/nightly-2024-11-23/unliftio-0.2.25.0/UnliftIO-Async.html#g:918:04:41
@dmjio:matrix.org@dmjio:matrix.org joined the room.20:12:38
24 Nov 2024
@lxsameer:matrix.orglxsameer sterni: does cabal2nix supports downloading and caching a hackage-db? 12:33:42
@maralorn:maralorn.demaralornI don't think it does. As part of the cabal2nix repo there is the hackage2nix binary and it asks for the database as an input.13:04:56
@locallycompact-github:matrix.orgDaniel FirthI added this argument. What would you say should be the corresponding modification to cabal2nix if it were to make use of it? https://github.com/NixOS/nixpkgs/pull/35868613:40:07
@sternenseemann:systemli.orgsterni (he/him) lxsameer: it just reads the data base that is managed by cabal-install. Fetching and updating is done with cabal {v2-,}update as usual 15:40:25
@sternenseemann:systemli.orgsterni (he/him)
In reply to @maralorn:maralorn.de
sterni: I am trying to understand the current state of the haskell-updates branch. I guess we could just merge it into staging at any time if we have enough visibility, right?
Yes, but realistically we won't be able to have any confidence before we have builds on Hydra again. When staging-next is branched off, is probably the best time for this as we are based on staging as well, so we'd able to share a lot of builds.
15:44:28
@lxsameer:matrix.orglxsameer
In reply to @sternenseemann:systemli.org
lxsameer: it just reads the data base that is managed by cabal-install. Fetching and updating is done with cabal {v2-,}update as usual
I see. For the freeze tool we should pull down the snapshot of hackage db that is provided by the freeze file. When i swtiched to cabal2nix generated drivation, cabal2nix seems to look up the database on my local version of nixpks.
16:54:18
@sternenseemann:systemli.orgsterni (he/him) cabal2nix does not know about all-cabal-hashes in nixpkgs, so that's not possible 16:55:34
@lxsameer:matrix.orglxsameerHmmm so i can't explain what i see. It complains about a missing dependency. I use cabal2nix' function to generate the drvs16:59:37
@sternenseemann:systemli.orgsterni (he/him)what dependency is missing?17:10:29
@lxsameer:matrix.orglxsameerI'll send the logs later19:40:51
25 Nov 2024
@lxsameer:matrix.orglxsameer
In reply to @sternenseemann:systemli.org
what dependency is missing?
here is an example of the error:
[Error]: user error (No such package rts-1.0.2 in the cabal database. Did you run cabal update?)
10:49:28
@lxsameer:matrix.orglxsameercabal update did not help either10:49:37
@sternenseemann:systemli.orgsterni (he/him)rts is a core package that is part of ghc and not updloaded to hackage, so you'd expect that10:50:15
@sternenseemann:systemli.orgsterni (he/him) I think the easiest is probably to check ghc-pkg list if the package of the freeze file is already present in the correct version and omit such cases 10:51:22
@lxsameer:matrix.orglxsameerah ok let me see10:52:10
@lxsameer:matrix.orglxsameer
In reply to @sternenseemann:systemli.org
I think the easiest is probably to check ghc-pkg list if the package of the freeze file is already present in the correct version and omit such cases
what if the version didn't match?
10:57:37
@sternenseemann:systemli.orgsterni (he/him)then you are using different versions of ghc compared to when the freeze file was generated10:58:02
@sternenseemann:systemli.orgsterni (he/him)i'm not sure maybe there is a better way, i.e. maybe the freeze file tells you where the package comes from10:58:20
@lxsameer:matrix.orglxsameer
In reply to @sternenseemann:systemli.org
i'm not sure maybe there is a better way, i.e. maybe the freeze file tells you where the package comes from
i don't think that is possible, but I'll have a look
11:01:13

Show newer messages


Back to Room ListRoom Version: 6