Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

what to do about programs.sqlite #5

Closed
cdepillabout opened this issue Aug 3, 2022 · 10 comments · Fixed by #21
Closed

what to do about programs.sqlite #5

cdepillabout opened this issue Aug 3, 2022 · 10 comments · Fixed by #21

Comments

@cdepillabout
Copy link
Contributor

As described in #1, we'd like to use ~/.nix-defexpr/channels/nixos-unstable/programs.sqlite to figure out what Nixpkgs package contains a given executable.

@jonascarpay asked:

programs.sqlite is actually provided by nix-channel, which is a little outdated at this point. Is there an easy way of manually generating a programs.sqlite for a certain commit?

I took a quick look at this, and here's what I've found so far:

@cdepillabout
Copy link
Contributor Author

My suggestion would be: let's just pin binplz.dev to a single commit (whether that is unstable, or 22.05), manually download the programs.sqlite, and commit it to this repo. It's only 10MB. At some later point we could figure out a better solution.

@jonascarpay
Copy link
Contributor

Sounds good to me! Let's leave this issue open until we have a long-term solution, but for now we just manually update it when we bump the nixpkgs pin.

@jonascarpay
Copy link
Contributor

jonascarpay commented Aug 11, 2022

I looked into this some more today. It looks like command-not-found might get replaced by nix-index: NixOS/nixpkgs#39789. I'm seeing if we can just use that instead already.

@jonascarpay
Copy link
Contributor

@jonascarpay
Copy link
Contributor

As mentioned in #21, we're leaving this open until we find a solution that doesn't require locally running nix flake lock --update-input nixos-channel on every new machine.

@kayhide
Copy link
Contributor

kayhide commented Aug 23, 2022

How about making a dedicated repo which only contains programs.sqlite?
With it, we can consume desired version of programs.sqlite by just pointing commit hash or tag.

@jonascarpay
Copy link
Contributor

jonascarpay commented Aug 24, 2022

That's essentially what I do for my nordvpn config here. I'll copy that and see if it's feasible here as well. I'm a little worried SQLite won't compress as nicely.

EDIT: SQLite files aren't compressed, and git should run compression on binary files, so I think we might be fine.

@jonascarpay
Copy link
Contributor

@considerate
Copy link
Contributor

Why wasn't this closed by #25?

@jonascarpay
Copy link
Contributor

@considerate Oh, good catch, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants