git.iko.soy/typeable/nixpkgs
on master help sign in
ocamlPackages.merlin : 2.3.1 -> 2.5.0

For ocaml > 4.02 only

commit7bb3a04064c622628876a984531aa72c3f904152 authorThéophane Hufschmitt <theophane.hufschmitt@polytechnique.org> dateWed 20 Jul 2016, 14:53 (10 years ago) parent8007896
1 file changed+13−3
pkgs/development/tools/ocaml/merlin/default.nix+13−3
pkgs/development/tools/ocaml/merlin/default.nix+13−3
@@ -1,9 +1,19 @@
1−{ stdenv, fetchzip, ocaml, findlib, yojson, menhir
1+{ stdenv, fetchzip, ocaml, findlib, yojson, menhir, lib
22, withEmacsMode ? false, emacs }:
33
44assert stdenv.lib.versionAtLeast (stdenv.lib.getVersion ocaml) "4.00";
55
6−let version = "2.3.1"; in
6+let
7+ version = if lib.versionOlder (lib.getVersion ocaml) "4.02.0"
8+ then
9+ "2.3.1"
10+ else
11+ "2.5.0";
12+ hashes = {
13+ "2.3.1" = "192jamcc7rmvadlqqsjkzsl6hlgwhg9my1qc89fxh1lmd4qdsrpn";
14+ "2.5.0" = "1q09mnq4qmh6vfn45qxh2v81l364iazcpjs5dyczmlhln8b25bff";
15+ };
16+in
717
818stdenv.mkDerivation {
919
@@ -11,7 +21,7 @@ stdenv.mkDerivation {
1121
1222 src = fetchzip {
1323 url = "https://github.com/the-lambda-church/merlin/archive/v${version}.tar.gz";
14− sha256 = "192jamcc7rmvadlqqsjkzsl6hlgwhg9my1qc89fxh1lmd4qdsrpn";
24+ sha256 = hashes."${version}";
1525 };
1626
1727 buildInputs = [ ocaml findlib yojson menhir ]