diff options
Diffstat (limited to 'pkgs/development/tools/ocaml/ocp-indent/default.nix')
-rw-r--r-- | pkgs/development/tools/ocaml/ocp-indent/default.nix | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/pkgs/development/tools/ocaml/ocp-indent/default.nix b/pkgs/development/tools/ocaml/ocp-indent/default.nix index 9ad2976adbf..224ce57808f 100644 --- a/pkgs/development/tools/ocaml/ocp-indent/default.nix +++ b/pkgs/development/tools/ocaml/ocp-indent/default.nix @@ -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/} ''; |