git.iko.soy/typeable/nixpkgs
on master help sign in
ocp-index: 1.1.1 -> 1.1.2
commit2663f24a4861b5cb3fd86845bc222a3d219d4130 authorVincent Laporte <Vincent.Laporte@gmail.com> dateWed 1 Jul 2015, 20:22 (11 years ago) parentba4ddf5
1 file changed+11−3
pkgs/development/tools/ocaml/ocp-index/default.nix+11−3
pkgs/development/tools/ocaml/ocp-index/default.nix+11−3
@@ -1,4 +1,4 @@
1−{ stdenv, fetchzip, ocaml, findlib, ocpBuild, ocpIndent, opam, cmdliner, ncurses, re, lambdaTerm, libev }:
1+{ stdenv, fetchurl, fetchzip, ocaml, findlib, ocpBuild, ocpIndent, opam, cmdliner, ncurses, re, lambdaTerm, libev }:
22
33let inherit (stdenv.lib) getVersion versionAtLeast optional; in
44
@@ -6,7 +6,13 @@ assert versionAtLeast (getVersion ocaml) "3.12.1";
66assert versionAtLeast (getVersion ocpBuild) "1.99.6-beta";
77assert versionAtLeast (getVersion ocpIndent) "1.4.2";
88
9−let version = "1.1.1"; in
9+let
10+ version = "1.1.2";
11+ patch402 = fetchurl {
12+ url = https://raw.githubusercontent.com/ocaml/opam-repository/master/packages/ocp-index/ocp-index.1.1.2/files/ocaml.4.02.patch;
13+ sha256 = "1wcpn2pv7h8ia3ybmzdlm8v5hfvq1rgmlj02wwj0yh3vqjvxqvsm";
14+ };
15+in
1016
1117stdenv.mkDerivation {
1218
@@ -14,9 +20,11 @@ stdenv.mkDerivation {
1420
1521 src = fetchzip {
1622 url = "http://github.com/OCamlPro/ocp-index/archive/${version}.tar.gz";
17− sha256 = "173lqbyivwv1zf9ifpxa9f8m2y3kybzs3idrwyzy824ixdqv2fww";
23+ sha256 = "0cz0bz5nisc5r23b1w07q2bl489gd09mg8rp9kyq9m6rj669b18l";
1824 };
1925
26+ patches = optional (versionAtLeast (getVersion ocaml) "4.02") patch402;
27+
2028 buildInputs = [ ocaml findlib ocpBuild opam cmdliner ncurses re libev ]
2129 ++ optional (versionAtLeast (getVersion lambdaTerm) "1.7") lambdaTerm;
2230 propagatedBuildInputs = [ ocpIndent ];