diff options
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -5,3 +5,15 @@ Nix derivation to install clever-tools - see https://github.com/CleverCloud/clev | |||
5 | ## How to use it | 5 | ## How to use it |
6 | 6 | ||
7 | [See the example.nix](https://github.com/fretlink/clever-tools-nix/blob/master/example.nix) | 7 | [See the example.nix](https://github.com/fretlink/clever-tools-nix/blob/master/example.nix) |
8 | |||
9 | ## How to publish a new version | ||
10 | |||
11 | First, edit `clever-tools/default.nix`, to update the version number. For the expected hash, you can put `0000000000000000000000000000000000000000000000000000` (52 zeroes). | ||
12 | |||
13 | Then, edit `default.nix`, update the `callPackage` line to the new version, as well as the `latest` value. | ||
14 | |||
15 | Once you've done that, add a `mkOlderVersion` for the previous latest version. Once again, you can use the null hash for `sha256`. | ||
16 | |||
17 | Then, run `nix build`. It will give you the correct values for the hashes. Correct those, run it again and you'll see `result-` directories, one per version. Go ahead and make sure they all work. | ||
18 | |||
19 | Finally, don't forget to update `check.sh` with the latest version number. | ||