ocaml-ocp-indent: 1.4.2b -> 1.5.2

This commit is contained in:
Vincent Laporte 2015-10-14 19:26:38 +02:00
parent 621b66c3df
commit 92e2e18fbb
1 changed files with 8 additions and 6 deletions

View File

@ -1,23 +1,25 @@
{ stdenv, fetchurl, ocaml, findlib, ocpBuild, opam, cmdliner }: { stdenv, fetchzip, ocaml, findlib, ocpBuild, opam, cmdliner }:
let inherit (stdenv.lib) getVersion versionAtLeast; in let inherit (stdenv.lib) getVersion versionAtLeast; in
assert versionAtLeast (getVersion ocaml) "3.12.1"; assert versionAtLeast (getVersion ocaml) "3.12.1";
assert versionAtLeast (getVersion ocpBuild) "1.99.3-beta"; assert versionAtLeast (getVersion ocpBuild) "1.99.6-beta";
stdenv.mkDerivation { stdenv.mkDerivation {
name = "ocp-indent-1.4.2b"; name = "ocp-indent-1.5.2";
src = fetchurl { src = fetchzip {
url = "https://github.com/OCamlPro/ocp-indent/archive/1.4.2b.tar.gz"; url = "https://github.com/OCamlPro/ocp-indent/archive/1.5.2.tar.gz";
sha256 = "1p0n2zcl5kf543x2xlqrz1aa51f0dqal8l392sa41j6wx82j0gpb"; sha256 = "0ynv2yhm7akpvqp72pdabhddwr352s1k85q8m1khsvspgg1mkiqz";
}; };
buildInputs = [ ocaml findlib ocpBuild opam cmdliner ]; buildInputs = [ ocaml findlib ocpBuild opam cmdliner ];
createFindlibDestdir = true; createFindlibDestdir = true;
preConfigure = "patchShebangs ./install.sh";
postInstall = '' postInstall = ''
mv $out/lib/{ocp-indent,ocaml/${getVersion ocaml}/site-lib/} mv $out/lib/{ocp-indent,ocaml/${getVersion ocaml}/site-lib/}
''; '';