ocp-indent: readd old version 1.5.2
Some packages (ocp-index, for instance) are not yet compatible with newer versions of ocp-indent. So version 1.5.2 is still needed.
This commit is contained in:
parent
98058ef444
commit
7ba979cac3
2 changed files with 38 additions and 0 deletions
37
pkgs/development/tools/ocaml/ocp-indent/1.5.2.nix
Normal file
37
pkgs/development/tools/ocaml/ocp-indent/1.5.2.nix
Normal file
|
@ -0,0 +1,37 @@
|
|||
{ 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.6-beta";
|
||||
assert versionAtLeast "0.9.8" (getVersion cmdliner);
|
||||
|
||||
stdenv.mkDerivation {
|
||||
|
||||
name = "ocp-indent-1.5.2";
|
||||
|
||||
src = fetchzip {
|
||||
url = "https://github.com/OCamlPro/ocp-indent/archive/1.5.2.tar.gz";
|
||||
sha256 = "0ynv2yhm7akpvqp72pdabhddwr352s1k85q8m1khsvspgg1mkiqz";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ ocpBuild opam ];
|
||||
|
||||
buildInputs = [ ocaml findlib cmdliner ];
|
||||
|
||||
createFindlibDestdir = true;
|
||||
|
||||
preConfigure = "patchShebangs ./install.sh";
|
||||
|
||||
postInstall = ''
|
||||
mv $out/lib/{ocp-indent,ocaml/${getVersion ocaml}/site-lib/}
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = "http://typerex.ocamlpro.com/ocp-indent.html";
|
||||
description = "A customizable tool to indent OCaml code";
|
||||
license = licenses.gpl3;
|
||||
platforms = ocaml.meta.platforms or [];
|
||||
maintainers = [ maintainers.jirkamarsik ];
|
||||
};
|
||||
}
|
|
@ -389,6 +389,7 @@ let
|
|||
ocpBuild = callPackage ../development/tools/ocaml/ocp-build { };
|
||||
|
||||
ocpIndent = callPackage ../development/tools/ocaml/ocp-indent { cmdliner = cmdliner_1_0; };
|
||||
ocpIndent_1_5_2 = callPackage ../development/tools/ocaml/ocp-indent/1.5.2.nix { };
|
||||
|
||||
ocp-index = callPackage ../development/tools/ocaml/ocp-index { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue