!djTaTBQyWEPRQxrPTb:nixos.org

Nixpkgs Architecture

216 Members
Discussions about Nixpkgs' architecture - https://github.com/NixOS/nixpkgs/labels/architecture47 Servers

Load older messages


SenderMessageTime
17 Mar 2024
@roberthensing:matrix.orgRobert Hensing (roberth) I'd prefer for programs.sqlite to be a package like some of the other "data" packages (cabal-hashes, fonts, ...) 13:48:14
@roberthensing:matrix.orgRobert Hensing (roberth)It will be out of sync, but that's acceptable and worth the cost savings13:48:41
@roberthensing:matrix.orgRobert Hensing (roberth)It won't be out of sync by much, if we have a cron job13:49:01
@infinisil:matrix.orginfinisilIt's a tradeoff, but I'd rather have things be in sync..13:49:06
@roberthensing:matrix.orgRobert Hensing (roberth)Sure, sync is nice, but why?13:49:20
@infinisil:matrix.orginfinisilIsn't that obvious? If there's a new package I can get it, and I won't get old packages. I also won't get matches for broken packages13:50:10
@roberthensing:matrix.orgRobert Hensing (roberth)It's going to be out of sync "by definition" because of build failures anyway13:50:21
@roberthensing:matrix.orgRobert Hensing (roberth)If a build fails, it should still be in the programs db, because the failure is probably not permanent13:51:02
@roberthensing:matrix.orgRobert Hensing (roberth)For it to go missing would be bad13:51:08
@infinisil:matrix.orginfinisilBoth behaviours could be useful13:51:30
@infinisil:matrix.orginfinisilThough I guess it's rare that you'd be okay with not getting a match, or a different match, if there's a build failure13:52:13
@infinisil:matrix.orginfinisilSo fair13:52:18
@roberthensing:matrix.orgRobert Hensing (roberth)It could be updated through the channel update process, but the data should be available on non-channel branches13:52:30
@roberthensing:matrix.orgRobert Hensing (roberth) I mean the hydra-based channel update process, not nix-channel 13:54:23
@infinisil:matrix.orginfinisilI don't see how that could work. Somebody needs to do the processing, and it won't work for every commit13:54:25
@infinisil:matrix.orginfinisilYeah how channels work isn't ideal, but the basic idea of having more slowly updating references that are tested is a good idea, and can't be replaced with git branches13:56:04
@infinisil:matrix.orginfinisil * Yeah how channels work isn't ideal, but the basic idea of having more slowly updating references that are tested is a good idea, and can't be replaced with git branches only13:56:09
@roberthensing:matrix.orgRobert Hensing (roberth) I think this solution is worth considering because it's close to how programs.sqlite was traditionally created for the non-git channel tarballs. I'm pretty sure it needs a hydra evaluation, so it may make sense to make it part of that process instead of a separate cron job. 14:00:26
@roberthensing:matrix.orgRobert Hensing (roberth)Basically it changes where the data is written to, instead of changing the whole process14:00:48
@roberthensing:matrix.orgRobert Hensing (roberth)I've never seen the channel script though - I've only heard about what it does, so grain of salt.14:01:21
@infinisil:matrix.orginfinisil Oh I see what you mean, so instead of putting programs.sqlite in the channel release, it's committed to the source directly 14:01:47
@roberthensing:matrix.orgRobert Hensing (roberth)Yeah14:01:59
@roberthensing:matrix.orgRobert Hensing (roberth)I don't think that script is in Nixpkgs, or is it?14:02:08
@roberthensing:matrix.orgRobert Hensing (roberth) * I don't think that script is in nixpkgs, or is it? 14:02:21
@infinisil:matrix.orginfinisil Robert Hensing (roberth): https://github.com/NixOS/nixos-channel-scripts 14:02:35
@infinisil:matrix.orginfinisilPretty sure14:02:40
@infinisil:matrix.orginfinisil Can't say I'm a fan of the idea, or at least it won't quite work as is. If you run Hydra for commit X, it calculates programs.sqlite for it, but now you need to push it with commit X+1. If you publish commit X as the channel update, people won't get the latest programs.sqlite. 14:05:14
@k900:0upti.meK900Indeed 14:05:02
@k900:0upti.meK900Putting it into nixpkgs is a bad idea14:05:23
@k900:0upti.meK900Unless we add LFS14:05:32

Show newer messages


Back to Room ListRoom Version: 9