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

nix version how to make updates stay on ungoogled-chromium #1050

Closed
truesilver92 opened this issue May 26, 2020 · 7 comments
Closed

nix version how to make updates stay on ungoogled-chromium #1050

truesilver92 opened this issue May 26, 2020 · 7 comments

Comments

@truesilver92
Copy link

I am using the (unofficial? not in the list) nixOS version which works great, but when trying to do updates using nix-env -u it updates to the normal chromium package (I think it has to do with version number)

How do you install ungoogled-chromium using nix (or nox) in a way that makes updates using nix-env -u only grab newer versions of ungoogled-chromium?

@squalus
Copy link
Member

squalus commented Jun 20, 2020

Might be better to ask on #nixos IRC. I'm not sure exactly how the nix-env command works. The Nix package attribute path is ungoogled-chromium, so I would expect it to work like any other package if you've installed that.

Are you sure it's reverting to the normal chromium package? The nix store path for ungoogled-chromium is a little misleading in that it just says "chromium" instead of "ungoogled-chromium". This is something I can fix in a future revision.

@truesilver92
Copy link
Author

From my reading sadly the attribute path is not used as part of the logic in nix for doing updates. I remember reading an issue where they were discussing adding it for doing updates, but it may be a while off. It will probably break something.

I just tested again and nix tries to replace ungoogled-chromium with base chromium. The easiest fix would be to rename the ungoogled-chromium version's package to ungoogled-chromium. Will you make that change?

@squalus
Copy link
Member

squalus commented Jun 22, 2020

I'm not a nix-env user, so I don't really understand the issue. Do you have a link to where you were reading about that?

@squalus
Copy link
Member

squalus commented Jun 22, 2020

But either way, yes I can include this in a future revision of the nix package!

@truesilver92
Copy link
Author

NixOS/nix#3283

@squalus
Copy link
Member

squalus commented Jun 22, 2020

The best thing to do right now is to fix those nixpkgs packages so that the derivation name matches the attribute name.

This is something I can do

@PF4Public
Copy link
Contributor

I hope your question(-s) has(-ve) been answered, otherwise please let us know.
Closing this issue for now.

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

No branches or pull requests

4 participants