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

Suggested command to run nixpkgs-update does not work #292

Closed
romildo opened this issue Dec 4, 2021 · 2 comments
Closed

Suggested command to run nixpkgs-update does not work #292

romildo opened this issue Dec 4, 2021 · 2 comments

Comments

@romildo
Copy link

romildo commented Dec 4, 2021

I would like to try nixpkgs-update locally. The documentation suggests to use the following command to run nixpkgs-update, but it does not work on my nixos unstable system:

$ nix run   --option extra-substituters 'https://nixpkgs-update.cachix.org/'   --option trusted-public-keys 'nixpkgs-update.cachix.org-1:6y6Z2JdoL3APdu6/+Iy8eZX2ajf09e4EE9SnxSML1W8='   -f https://github.com/ryantm/nixpkgs-update/archive/master.tar.gz   -c nixpkgs-update --help
error: unrecognised flag '-c'

Any clues?

@ryantm
Copy link
Collaborator

ryantm commented Dec 5, 2021

In Nix 2.4 nix run was changed so it doesn't support -c anymore. If you have flakes enabled you can do this:

nix run   --option extra-substituters 'https://nixpkgs-update.cachix.org/'   --option trusted-public-keys 'nixpkgs-update.cachix.org-1:6y6Z2JdoL3APdu6/+Iy8eZX2ajf09e4EE9SnxSML1W8=' github:ryantm/nixpkgs-update -- --help

@ryantm
Copy link
Collaborator

ryantm commented Dec 5, 2021

Oh, I think it is simpler to just change it to use nix shell, then you don't need flakes:

nix run   --option extra-substituters 'https://nixpkgs-update.cachix.org/'   --option trusted-public-keys 'nixpkgs-update.cachix.org-1:6y6Z2JdoL3APdu6/+Iy8eZX2ajf09e4EE9SnxSML1W8='   -f https://github.com/ryantm/nixpkgs-update/archive/master.tar.gz   -c nixpkgs-update --help

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

No branches or pull requests

2 participants