!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
@sternenseemann:systemli.orgsterni (he/him)I don't mean callCabal2nix no, that uses derivations17:29:28
@sternenseemann:systemli.orgsterni (he/him)it's probably best to use the library that cabal2nix exposes, as I've mentioned before17:30:07
@lxsameer:matrix.orglxsameerthank you. 17:31:47
@alexfmpe:matrix.orgalexfmpehow can I see hydra cached status? I did a nixpkgs bump on a project to last haskell-updates -> master merge and getting unexpected builds given it's in master for 2 weeks now and usually we cache even before then on my NixOS I had a 15min build of ~20 packages due to overrides, but when doing the same on MacOS I get ~100 packages 21:12:25
@maralorn:maralorn.demaralornalexfmpe, you can try to find the job you are interested in on hydra.nixos.org. There you can also see the built commit.21:19:23
@alexfmpe:matrix.orgalexfmpehttps://hydra.nixos.org/eval/1809838 seems allright21:41:37
@alexfmpe:matrix.orgalexfmpeI wonder if some builder is having hiccups21:41:44
@alexfmpe:matrix.orgalexfmpe * I wonder if some cache is having hiccups21:41:59
@maralorn:maralorn.demaralornI regularly do sudo rm /root/.cache/nix because that cache caches cache misses.21:43:03
@alexfmpe:matrix.orgalexfmpeyikes21:43:13
@alexfmpe:matrix.orgalexfmpelessee21:43:20
@maralorn:maralorn.demaralornI never could proof a wrong miss in the upstream cache even though I often suspected it.21:44:09
@alex:tunstall.xyzAlex
In reply to @maralorn:maralorn.de
I regularly do sudo rm /root/.cache/nix because that cache caches cache misses.
Why not disable the caching of failures altogether? There's a Nix config option for that.
22:00:14
@emilazy:matrix.orgemilyor just upgrade Nix; there's no "cached failure" without an error message these days22:08:30
@emilazy:matrix.orgemilyunless I misunderstand22:08:45
@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

Show newer messages


Back to Room ListRoom Version: 6