3
0
Fork 0
forked from mirrors/nixpkgs

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

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
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 {
name = "ocp-indent-1.4.2b";
name = "ocp-indent-1.5.2";
src = fetchurl {
url = "https://github.com/OCamlPro/ocp-indent/archive/1.4.2b.tar.gz";
sha256 = "1p0n2zcl5kf543x2xlqrz1aa51f0dqal8l392sa41j6wx82j0gpb";
src = fetchzip {
url = "https://github.com/OCamlPro/ocp-indent/archive/1.5.2.tar.gz";
sha256 = "0ynv2yhm7akpvqp72pdabhddwr352s1k85q8m1khsvspgg1mkiqz";
};
buildInputs = [ ocaml findlib ocpBuild opam cmdliner ];
createFindlibDestdir = true;
preConfigure = "patchShebangs ./install.sh";
postInstall = ''
mv $out/lib/{ocp-indent,ocaml/${getVersion ocaml}/site-lib/}
'';