mirror of
https://github.com/ryantm/nixpkgs-update.git
synced 2024-12-17 08:21:44 +03:00
add instructions for using nix-update
This commit is contained in:
parent
46a32f9be8
commit
bd767c61b2
12
README.md
12
README.md
@ -1,5 +1,17 @@
|
||||
# nix-update
|
||||
|
||||
1. 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
|
||||
```
|
||||
2. 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 with `git reset --hard`. USE THIS ON A NEWLY CLONED REPO ONLY FOR THIS PURPOSE.
|
||||
3. copy list of ones you want to update into `ups.sh` ARGUMENTS variable
|
||||
4. Be in the directory of your update git repository. run `ups.sh` if it succeeds, it will make commits and push updates to the origin remote!
|
||||
|
||||
# old notes
|
||||
|
||||
git ls-remote --refs --tags git://github.com/mattermost/mattermost-server.git | grep -v "rc" | tail -1
|
||||
|
||||
nix-instantiate -I nixpkgs=/home/ryantm/p/nixpkgs --eval --expr 'let pkgs = import <nixpkgs> {}; in builtins.elemAt pkgs.mattermost.src.urls 0'
|
||||
|
Loading…
Reference in New Issue
Block a user