!djTaTBQyWEPRQxrPTb:nixos.org

Nixpkgs Architecture Team

231 Members
https://github.com/nixpkgs-architecture, weekly public meetings on Wednesday 15:00-16:00 UTC at https://meet.jit.si/nixpkgs-architecture53 Servers

Load older messages


SenderMessageTime
17 Mar 2024
@infinisil:matrix.orginfinisil * Orthogonally to this discussion, programs.sqlite should be replaced with a nix-index database 14:14:12
@roberthensing:matrix.orgRobert Hensing (roberth)Sure, but it needs to be distributed somehow, regardless of the format14:14:25
@k900:0upti.meK900
In reply to @k900:0upti.me
That don't involve tracking an sqlite blob in nixpkgs forever
No, we shouldn't
14:14:24
@k900:0upti.meK900 We should deliver working command-not-found to those users 14:14:33
@k900:0upti.meK900But that is very much not the same thing 14:14:40
@roberthensing:matrix.orgRobert Hensing (roberth)And it shouldn't be based on the exact Nixpkgs commit, because then other branches don't work14:14:45
@infinisil:matrix.orginfinisilHow about making Flakes support channels14:14:56
@infinisil:matrix.orginfinisilWe don't need to invent a new solution for something that already worked in stable Nix14:15:06
@roberthensing:matrix.orgRobert Hensing (roberth)No, that doesn't solve the problem that branches don't have the data14:15:22
@infinisil:matrix.orginfinisilEven npins supports channels, it's just a tarball fetch14:15:23
@k900:0upti.meK900You can actually use a channel as a flake input already 14:15:22
@roberthensing:matrix.orgRobert Hensing (roberth)It's not a flakes problem14:15:35
@k900:0upti.meK900It's silly but you can 14:15:27
@k900:0upti.meK900But CNF will not pick it up because it looks in hardcoded places 14:15:41
@infinisil:matrix.orginfinisil
In reply to @k900:0upti.me
You can actually use a channel as a flake input already
Does that actually work well?
14:16:35
@infinisil:matrix.orginfinisil
In reply to @roberthensing:matrix.org
It's not a flakes problem
If Flakes supports channels, why does everybody fetch from git instead?
14:17:27
@k900:0upti.meK900No 14:16:57
@k900:0upti.meK900 But it does work 14:17:02
@k900:0upti.meK900Probably about as well as it can without flakes having to know about the details of the channel tarball format 14:17:37
@infinisil:matrix.orginfinisilMaybe if channels were more first-class in Flakes, we wouldn't even need the channel branches14:17:59
@roberthensing:matrix.orgRobert Hensing (roberth)That's all besides the point. If you don't add the CNF data to a Nixpkgs package, no branch will have it14:18:43
@roberthensing:matrix.orgRobert Hensing (roberth)except maybe the special ones14:18:50
@infinisil:matrix.orginfinisil Oh you want branches that haven't been built by Hydra to also have some database 14:19:19
@infinisil:matrix.orginfinisilSo like a fallback database14:19:22
@roberthensing:matrix.orgRobert Hensing (roberth)Yes, I want to enable CNF in my config, and switch to someone's PR branch to test things out14:19:48
@roberthensing:matrix.orgRobert Hensing (roberth)Or maybe I'm in a situation where I need something custom that's not upstreamable yet or whatever14:20:09
@roberthensing:matrix.orgRobert Hensing (roberth)That should not force me to disable CNF14:20:17
@roberthensing:matrix.orgRobert Hensing (roberth)Like a fallback database, yes, but the fallback aspect is mostly irrelevant14:20:41
@infinisil:matrix.orginfinisil So I guess somebody could like set programsSqlite = pkgs.fetchurl "https://my-url.com/programs.sqlite" 14:22:07
@roberthensing:matrix.orgRobert Hensing (roberth)Well, if they care to set that up, but otherwise they have a db that works 99.5% of the time, which is great14:23:40

Show newer messages


Back to Room ListRoom Version: 9