+## 1.3.0
+
+* split the `installPhase` by extracting the `unpackPhase`
+
## 1.1.0
* Get rid of nodegit, not being used anymore by clever-tools.
-[ "$(clever --version)" == "1.1.0" ]
+[ "$(clever --version)" == "1.3.0" ]
stdenv.mkDerivation rec {
name = "clever-tools-${version}";
- version = "1.1.0";
+ version = "1.3.0";
src = fetchurl {
url = "https://clever-tools.cellar.services.clever-cloud.com/releases/${version}/clever-tools-${version}_linux.tar.gz";
- sha256 = "1lkwckmlz2gf41xmnzydpcbly0jcry3bn8lp570gha768ic7xmb1";
+ sha256 = "03dasjxkg6x6f5d3l7dacc2h9v1i9q1vfzppnlzdpzkzkgv9vy6n";
};
libPath = stdenv.lib.makeLibraryPath [ stdenv.cc.cc glibc ];
- installPhase = ''
+ unpackPhase = ''
tar --extract --file=$src
+ '';
+
+ installPhase = ''
bin=$out/bin/clever
mkdir -p $out/bin
- mv clever $bin
+ mv clever-tools-${version}_linux/clever $bin
'';
dontStrip = "true";
sha256 = "1n831iw55di0s2izbl03xivs59792swfji2n46vhi3mkdawrsjkg";
};
- # 1.1.0
+ v1_1_1 = mkOlderVersion {
+ rev = "63d289fd2f02a4d45e60f61e11f8dd9d3b4963fc";
+ sha256 = "14ni1iaygbxihihmjiv7a7cg1q83y15lpqdp54frfyymjb7y12nj";
+ };
+
+ # 1.3.0
latest = callPackage ./clever-tools {};
}