mirror of
https://github.com/nix-community/nixpkgs-update.git
synced 2024-09-11 14:05:43 +03:00
1.4 KiB
1.4 KiB
Interactive updates
nixpkgs-update supports interactive, single package updates via the
update
subcommand.
Update tutorial
- Setup
hub
and give it your GitHub credentials. Alternatively, if you prefer not to install and configurehub
, you can manually create a GitHub token withrepo
andgist
scopes. Provide it tonixpkgs-update
by exporting it as theGITHUB_TOKEN
environment variable (nixpkgs-update
only tries to usehub
to check out thenixpkgs
repo into your XDG cache directory, if you runnixpkgs-update
outside of anixpkgs
checkout directory). - Go to your local checkout of nixpkgs, and make sure the working directory is clean. Be on a branch you are okay committing to.
- Run it like:
nixpkgs-update update "postman 7.20.0 7.21.2"
which mean update the package "postman" from version 7.20.0 to version 7.21.2. - It will run the updater, and, if the update builds, it will commit the update and output a message you could use for a pull request.
Flags
--cve
-
adds CVE vulnerability reporting to the PR message. On first invocation with this option, a CVE database is built. Subsequent invocations will be much faster.
--nixpkgs-review
-
runs nixpkgs-review, which tries to build all the packages that depend on the one being updated and adds a report.