2018-04-01 18:23:49 +03:00
|
|
|
# nixpkgs-update
|
2018-01-12 06:25:47 +03:00
|
|
|
|
2018-04-01 18:23:49 +03:00
|
|
|
[![Build Status](https://travis-ci.org/ryantm/nixpkgs-update.svg?branch=master)](https://travis-ci.org/ryantm/nixpkgs-update)
|
2018-02-26 17:29:42 +03:00
|
|
|
|
2018-03-22 07:57:19 +03:00
|
|
|
Scripts to try to update nixpkgs packages. Uses `hub` to automatically make PRs.
|
|
|
|
|
|
|
|
# Instructions
|
|
|
|
|
2018-03-31 06:07:46 +03:00
|
|
|
1. Clone this repo and build the tool:
|
2018-03-31 01:17:03 +03:00
|
|
|
```
|
|
|
|
git clone https://github.com/ryantm/nixpkgs-update && cd nixpkgs-update
|
2018-03-31 06:07:46 +03:00
|
|
|
nix run nixpkgs.cabal2nix -c cabal2nix --shell --hpack . > shell.nix && nix-build shell.nix
|
2018-03-31 01:17:03 +03:00
|
|
|
```
|
2018-03-22 07:57:19 +03:00
|
|
|
2. Get a list of oudated packages and place them in a `packages-to-update.txt` file in the root directory of this repository.
|
2018-03-31 01:17:03 +03:00
|
|
|
```
|
|
|
|
git clone https://github.com/ryantm/repology-api.git && cd repology-api
|
|
|
|
nix run nixpkgs.cabal2nix -c cabal2nix --shell --hpack . > shell.nix && nix-build shell.nix && result/bin/repology-api > ../packages-to-update.txt
|
|
|
|
```
|
2018-03-31 06:07:46 +03:00
|
|
|
3. Return back `cd ..` and run the tool `result/bin/nix-update`
|
2018-02-26 17:26:20 +03:00
|
|
|
|
2018-03-31 01:17:03 +03:00
|
|
|
# Prior work
|
2018-03-04 23:04:59 +03:00
|
|
|
|
2018-03-31 01:17:03 +03:00
|
|
|
* 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
|