From aff23eb835c9374fa1e70ff564ddcf668d58b745 Mon Sep 17 00:00:00 2001 From: Clement Delafargue Date: Tue, 8 Oct 2019 11:37:13 +0200 Subject: update to v1.6.2 --- check.sh | 2 +- clever-tools/default.nix | 6 +++--- default.nix | 9 +++++++-- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/check.sh b/check.sh index 120dfa5..e08a588 100755 --- a/check.sh +++ b/check.sh @@ -1 +1 @@ -[ "$(clever --version)" == "1.4.2" ] +[ "$(clever --version)" == "1.6.2" ] diff --git a/clever-tools/default.nix b/clever-tools/default.nix index 72d966e..4884860 100644 --- a/clever-tools/default.nix +++ b/clever-tools/default.nix @@ -2,11 +2,11 @@ stdenv.mkDerivation rec { name = "clever-tools-${version}"; - version = "1.4.2"; + version = "1.6.2"; src = fetchurl { - url = "https://clever-tools.cellar.services.clever-cloud.com/releases/${version}/clever-tools-${version}_linux.tar.gz"; - sha256 = "080q7z526g5hikm8gy7i8fjm2kv656r17dcmgi0d8jg7w0z5759c"; + url = "https://clever-tools.clever-cloud.com/releases/${version}/clever-tools-${version}_linux.tar.gz"; + sha256 = "00kmk1dxfs5d8qj74qj917gcssq0c1gm513wq4a7a4v5fm4zmirl"; }; libPath = stdenv.lib.makeLibraryPath [ stdenv.cc.cc glibc ]; diff --git a/default.nix b/default.nix index 908a3c2..c2eaf10 100644 --- a/default.nix +++ b/default.nix @@ -30,7 +30,12 @@ in rec { sha256 = "1r7n6cn2hj15a9msp55bbrb4j3srpmx00dxjj8vf0h5wagy8h1r5"; }; - v1_4_2 = callPackage ./clever-tools {}; + v1_4_2 = mkOlderVersion { + rev = "e3b8f435cbb59fd64743ab495dcffb3496fee8e5"; + sha256 = "1wnz52m0ilsi18yrrv4iw2629ja0kjhqf53aldyrfb32ri8zcjxg"; + }; + + v1_6_2 = callPackage ./clever-tools {}; - latest = v1_4_2; + latest = v1_6_2; } -- cgit v1.2.3 From 7175382714b9c3ef3c754cbd6431bd0f0ee4465a Mon Sep 17 00:00:00 2001 From: Clement Delafargue Date: Tue, 8 Oct 2019 11:45:11 +0200 Subject: Ignore all result directories --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 92d225d..08dd670 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ *.sw* result +result-* -- cgit v1.2.3 From f55a64c688209e625e7e1ccb50e4db00ee1d8ec3 Mon Sep 17 00:00:00 2001 From: Clement Delafargue Date: Tue, 8 Oct 2019 11:51:48 +0200 Subject: Add contributing help in the readme --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index 3d9894a..9d744f5 100644 --- a/README.md +++ b/README.md @@ -5,3 +5,15 @@ Nix derivation to install clever-tools - see https://github.com/CleverCloud/clev ## How to use it [See the example.nix](https://github.com/fretlink/clever-tools-nix/blob/master/example.nix) + +## How to publish a new version + +First, edit `clever-tools/default.nix`, to update the version number. For the expected hash, you can put `0000000000000000000000000000000000000000000000000000` (52 zeroes). + +Then, edit `default.nix`, update the `callPackage` line to the new version, as well as the `latest` value. + +Once you've done that, add a `mkOlderVersion` for the previous latest version. Once again, you can use the null hash for `sha256`. + +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. + +Finally, don't forget to update `check.sh` with the latest version number. -- cgit v1.2.3