Skip to content

Commit d30fc3b

Browse files
committedJul 15, 2017
ocamlPackages.sedlex: 1.99.3 -> 1.99.4
1 parent 7383d69 commit d30fc3b

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed
 

‎pkgs/development/ocaml-modules/sedlex/default.nix

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
1-
{ stdenv, fetchzip, ocaml, findlib, gen, ppx_tools }:
1+
{ stdenv, fetchzip, ocaml, findlib, gen, ppx_tools_versioned }:
22

3-
assert stdenv.lib.versionAtLeast ocaml.version "4.02";
3+
if !stdenv.lib.versionAtLeast ocaml.version "4.02"
4+
then throw "sedlex is not available for OCaml ${ocaml.version}"
5+
else
46

57
stdenv.mkDerivation rec {
68
name = "ocaml${ocaml.version}-sedlex-${version}";
7-
version = "1.99.3";
9+
version = "1.99.4";
810

911
src = fetchzip {
1012
url = "http://github.com/alainfrisch/sedlex/archive/v${version}.tar.gz";
11-
sha256 = "1wghjy3qyj43ll1ikchlqy7fv2hxcn3ap9xgsscm2ch09d8dcv7y";
13+
sha256 = "1b7nqxyfcz8i7m4b8zil2rn6ygh2czy26f9v64xnxn8r0hy9sh1m";
1214
};
1315

14-
buildInputs = [ ocaml findlib ppx_tools ];
16+
buildInputs = [ ocaml findlib ppx_tools_versioned ];
1517

1618
propagatedBuildInputs = [ gen ];
1719

0 commit comments

Comments
 (0)
Please sign in to comment.