summary refs log tree commit diff
path: root/pkgs/development/tools/ocaml/ocp-index
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2016-11-27 17:54:44 +0100
committerVincent Laporte <Vincent.Laporte@gmail.com>2016-11-28 09:33:28 +0100
commit33d49bbfb733de7d4a69fc187af2da3c03667470 (patch)
tree616ec5160163bffcd0605fcbc2a2cc4613b345d7 /pkgs/development/tools/ocaml/ocp-index
parent83410d9954ff9ce27023b66c86c05ace38a0c6e5 (diff)
downloadnixpkgs-33d49bbfb733de7d4a69fc187af2da3c03667470.tar
nixpkgs-33d49bbfb733de7d4a69fc187af2da3c03667470.tar.gz
nixpkgs-33d49bbfb733de7d4a69fc187af2da3c03667470.tar.bz2
nixpkgs-33d49bbfb733de7d4a69fc187af2da3c03667470.tar.lz
nixpkgs-33d49bbfb733de7d4a69fc187af2da3c03667470.tar.xz
nixpkgs-33d49bbfb733de7d4a69fc187af2da3c03667470.tar.zst
nixpkgs-33d49bbfb733de7d4a69fc187af2da3c03667470.zip
ocamlPackages.ocp-index: 1.1.4 -> 1.1.5
Diffstat (limited to 'pkgs/development/tools/ocaml/ocp-index')
-rw-r--r--pkgs/development/tools/ocaml/ocp-index/default.nix37
1 files changed, 14 insertions, 23 deletions
diff --git a/pkgs/development/tools/ocaml/ocp-index/default.nix b/pkgs/development/tools/ocaml/ocp-index/default.nix
index 721111f676f..6b865e9709a 100644
--- a/pkgs/development/tools/ocaml/ocp-index/default.nix
+++ b/pkgs/development/tools/ocaml/ocp-index/default.nix
@@ -1,39 +1,30 @@
-{ stdenv, fetchFromGitHub, ocaml, findlib, ocpBuild, ocpIndent, opam, cmdliner, ncurses, re, lambdaTerm, libev }:
+{ stdenv, fetchFromGitHub, fetchpatch, ocaml, findlib, ocpBuild, ocpIndent, opam, cmdliner, ncurses, re, lambdaTerm, libev }:
 
 let inherit (stdenv.lib) getVersion versionAtLeast optional; in
 
 assert versionAtLeast (getVersion ocaml) "4";
-assert versionAtLeast (getVersion ocpBuild) "1.99.6-beta";
+assert versionAtLeast (getVersion ocpBuild) "1.99.13-beta";
 assert versionAtLeast (getVersion ocpIndent) "1.4.2";
 
 let
-  version = "1.1.4";
-  srcs = {
-    "4.03.0" = {
-      rev = "${version}-4.03";
-      sha256 = "0c6s5radwyvxf9hrq2y9lirk72z686k9yzd0vgzy98yrrp1w56mv";
-    };
-    "4.02.3" = {
-      rev = "${version}-4.02";
-      sha256 = "057ss3lz754b2pznkb3zda5h65kjgqnvabvfqwqcz4qqxxki2yc8";
-    };
-    "4.01.0" = {
-      rev = "${version}";
-      sha256 = "106bnc8jhmjnychcl8k3gl9n6b50bc66qc5hqf1wkbkk9kz4vc9d";
-    };
-  };
-
-  src = fetchFromGitHub ({
-    owner = "OCamlPro";
-    repo = "ocp-index";
-  } // srcs."${ocaml.version}");
+  version = "1.1.5";
 in
 
 stdenv.mkDerivation {
 
   name = "ocp-index-${version}";
 
-  inherit src;
+  src = fetchFromGitHub {
+    owner = "OCamlPro";
+    repo = "ocp-index";
+    rev = version;
+    sha256 = "0gir0fm8mq609371kmwpsqfvpfx2b26ax3f9rg5fjf5r0bjk9pqd";
+  };
+
+  patches = [ (fetchpatch {
+    url = https://github.com/OCamlPro/ocp-index/commit/618872a0980d077857a63d502eadbbf0d1b05c0f.diff;
+    sha256 = "07snnydczkzapradh1c22ggv9vaff67nc36pi3218azb87mb1p7z";
+  }) ];
 
   buildInputs = [ ocaml findlib ocpBuild opam cmdliner ncurses re libev ]
   ++ optional (versionAtLeast (getVersion lambdaTerm) "1.7") lambdaTerm;