!RbXGJhHMsnQcNIDFWN:nixos.org

Haskell in Nixpkgs/NixOS

724 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.org145 Servers

Load older messages


SenderMessageTime
22 May 2021
@maralorn:maralorn.demaralorn sterni: cdepillabout: I am wondering how we should go about problems were people fix stuff upstream and then we have to decide if we workaround it or bump our hackage snapshot to fix our build error. I wish there was a solution to somehow bump only this one package … 18:55:42
@sternenseemann:systemli.orgsterni (he/him)this is the moment where I go I told you so right? :p18:56:07
@sternenseemann:systemli.orgsterni (he/him)it's a bit unfortunate, but I think we may also get away with bumping the hackage pin as well18:56:26
@sternenseemann:systemli.orgsterni (he/him) other than that we can just use overrideSrc in this case I'm pretty sure 18:56:53
@sternenseemann:systemli.orgsterni (he/him)I checked earlier doing a bump of hackage only has a sizeable diff, but it's hard to say if it'd break anything ofc18:57:24
@maralorn:maralorn.demaralornThe question is if we could (and want) introduce a distinction between the hackage-snapshot used for generation and the hackage-snapshot used for taking prefered-versions.18:59:02
@maralorn:maralorn.demaralornOh, actually. No that I phrase it that way, I don‘t think it would be that hard.18:59:40
@sternenseemann:systemli.orgsterni (he/him)we could probably do the same thing as for stackage and just generate a list of all the versions from the snapshot18:59:46
@maralorn:maralorn.demaralornBut it certainly comes with a complexity cost.18:59:54
@sternenseemann:systemli.orgsterni (he/him)then we could update the snapshot independently of that without regenerating the lsit19:00:02
@maralorn:maralorn.demaralorn
In reply to @sternenseemann:systemli.org
we could probably do the same thing as for stackage and just generate a list of all the versions from the snapshot
That will generate a lot of additional noise in the git-repo.
19:00:26
@sternenseemann:systemli.orgsterni (he/him)I also wonder if there would be any performance cost on hackage2nix19:00:27
@maralorn:maralorn.demaralorn sterni: The update-hackage script passes the hackage version and the preferred-versions separately to hackage2nix. So it would be pretty easy to give it different preferred versions. 19:02:40
@sternenseemann:systemli.orgsterni (he/him)oh right forgot that was a thing19:05:25
@valyagolev:matrix.orgValentin Golev joined the room.20:47:54
@valyagolev:matrix.orgValentin GolevRedacted or Malformed Event20:48:07
@valyagolev:matrix.orgValentin GolevRedacted or Malformed Event20:49:01
@maralorn:maralorn.demaralorn
In reply to @maralorn:maralorn.de
sterni: The update-hackage script passes the hackage version and the preferred-versions separately to hackage2nix. So it would be pretty easy to give it different preferred versions.
That way we could also do the thing, that we had considered, where we can keep the hackage snapshot up-to-date on stable without bumping any packages.
21:02:08
@sternenseemann:systemli.orgsterni (he/him)right indeed21:05:06
@sternenseemann:systemli.orgsterni (he/him)just got to find a clean way to track the preferred-versions file while also making it editable21:05:49
@maralorn:maralorn.demaralorn sterni: I don‘t think we need it editable. We can always override single versions via the yaml config. 21:06:41
@maralorn:maralorn.demaralornHuh, now that I think about it …21:07:54
@maralorn:maralorn.demaralorn I don‘t even think we need to track the latest hackage snapshot in nixpkgs. We only need to track which snapshot we use for preferred_versions. 21:08:38
@maralorn:maralorn.demaralornWould make the update script impure though21:09:39
@sternenseemann:systemli.orgsterni (he/him) but don't we want to keep preferred_versions and bump a single packae 21:09:42
@sternenseemann:systemli.orgsterni (he/him) * but don't we want to keep preferred_versions and bump a single package? 21:09:47
@maralorn:maralorn.demaralornBut I think only theoretically.21:09:57
@maralorn:maralorn.demaralorn sterni: Yes, what we would do is this a) use the pinned snapshot for preferred_versions b) use a freshly pulled snapshot from hackage for running hackage2nix c) for packages where we want the version to be newer than the preferred_version we pin the package in the yaml file. 21:11:47
@maralorn:maralorn.demaralornWe already do a).21:11:56
@maralorn:maralorn.demaralornBut b) is necessary for c) to work, because otherwise hackage2nix would possible not know about the newer package version.21:12:19

Show newer messages


Back to Room ListRoom Version: 6