summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2017-07-15 12:13:14 +0000
committerVincent Laporte <Vincent.Laporte@gmail.com>2017-07-15 12:13:14 +0000
commitd30fc3be985ceb78c39669907ffa1bce6bff7728 (patch)
treeb7dcc47c9754086da258056ce8ee0619e2e8f257 /pkgs/development/ocaml-modules
parent7383d69514f2ec11f8fab4d7bf04c142a5ab57fd (diff)
downloadnixpkgs-d30fc3be985ceb78c39669907ffa1bce6bff7728.tar
nixpkgs-d30fc3be985ceb78c39669907ffa1bce6bff7728.tar.gz
nixpkgs-d30fc3be985ceb78c39669907ffa1bce6bff7728.tar.bz2
nixpkgs-d30fc3be985ceb78c39669907ffa1bce6bff7728.tar.lz
nixpkgs-d30fc3be985ceb78c39669907ffa1bce6bff7728.tar.xz
nixpkgs-d30fc3be985ceb78c39669907ffa1bce6bff7728.tar.zst
nixpkgs-d30fc3be985ceb78c39669907ffa1bce6bff7728.zip
ocamlPackages.sedlex: 1.99.3 -> 1.99.4
Diffstat (limited to 'pkgs/development/ocaml-modules')
-rw-r--r--pkgs/development/ocaml-modules/sedlex/default.nix12
1 files changed, 7 insertions, 5 deletions
diff --git a/pkgs/development/ocaml-modules/sedlex/default.nix b/pkgs/development/ocaml-modules/sedlex/default.nix
index 6fcdb5ec6fa..1e3cb02b913 100644
--- a/pkgs/development/ocaml-modules/sedlex/default.nix
+++ b/pkgs/development/ocaml-modules/sedlex/default.nix
@@ -1,17 +1,19 @@
-{ stdenv, fetchzip, ocaml, findlib, gen, ppx_tools }:
+{ stdenv, fetchzip, ocaml, findlib, gen, ppx_tools_versioned }:
 
-assert stdenv.lib.versionAtLeast ocaml.version "4.02";
+if !stdenv.lib.versionAtLeast ocaml.version "4.02"
+then throw "sedlex is not available for OCaml ${ocaml.version}"
+else
 
 stdenv.mkDerivation rec {
   name = "ocaml${ocaml.version}-sedlex-${version}";
-  version = "1.99.3";
+  version = "1.99.4";
 
   src = fetchzip {
     url = "http://github.com/alainfrisch/sedlex/archive/v${version}.tar.gz";
-    sha256 = "1wghjy3qyj43ll1ikchlqy7fv2hxcn3ap9xgsscm2ch09d8dcv7y";
+    sha256 = "1b7nqxyfcz8i7m4b8zil2rn6ygh2czy26f9v64xnxn8r0hy9sh1m";
   };
 
-  buildInputs = [ ocaml findlib ppx_tools ];
+  buildInputs = [ ocaml findlib ppx_tools_versioned ];
 
   propagatedBuildInputs = [ gen ];