mirror of
https://github.com/nix-community/nixpkgs-update.git
synced 2024-11-29 08:51:48 +03:00
Updating nixpkgs packages since 2018
b4e91fbc30
closes #9 |
||
---|---|---|
old | ||
.gitignore | ||
check-result.sh | ||
delete-merged.sh | ||
LICENSE | ||
README.md | ||
to-staging.sh | ||
up.sh | ||
ups.sh |
nix-update
Currently interesting files ups.sh, up.sh, check-result.sh
.
- get a list of oudated packages
git clone https://github.com/ryantm/repology-api.git
cabal2nix --shell --hpack . > shell.nix && nix-build shell.nix && result/bin/repology-api > packages-to-update.txt
- Prepare a nixpkgs git repository where you want to do the updates. It expects
origin
to be where you want to push your updates. It clobbers any changes in that directory withgit reset --hard
. USE THIS ON A NEWLY CLONED REPO ONLY FOR THIS PURPOSE. - copy list of ones you want to update into
ups.sh
ARGUMENTS variable - delete update arguments that seem wrong. (Weird version strings, versions that don't seem like an update, the update version doesn't look like it would work with nixpkgs)
- Be in the directory of your update git repository. run
ups.sh
if it succeeds, it will make commits and push updates to theorigin
remote!
prior work
https://github.com/NixOS/nixpkgs/blob/master/pkgs/common-updater/scripts/update-source-version https://github.com/NixOS/nixpkgs/tree/master/pkgs/build-support/upstream-updater