diff options
author | Vincent Laporte <Vincent.Laporte@gmail.com> | 2018-03-28 08:20:56 +0000 |
---|---|---|
committer | Vincent Laporte <vbgl@users.noreply.github.com> | 2018-03-31 11:44:20 +0200 |
commit | f8acdb08f0f996ce20165c9663f0f9eb78280fbb (patch) | |
tree | b6923f3a98d33f968a1bb183258ddf31fa40587d /pkgs/development/ocaml-modules | |
parent | 1e1839239c5d865eb78bf214f0481ac30a07b105 (diff) |
ocamlPackages.ocp-ocamlres: 0.3 -> 0.4
Diffstat (limited to 'pkgs/development/ocaml-modules')
-rw-r--r-- | pkgs/development/ocaml-modules/ocp-ocamlres/default.nix | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/pkgs/development/ocaml-modules/ocp-ocamlres/default.nix b/pkgs/development/ocaml-modules/ocp-ocamlres/default.nix index bf0e98ec1952d..6410eb296283b 100644 --- a/pkgs/development/ocaml-modules/ocp-ocamlres/default.nix +++ b/pkgs/development/ocaml-modules/ocp-ocamlres/default.nix @@ -1,16 +1,20 @@ -{ stdenv, fetchFromGitHub, ocaml, findlib, pprint }: +{ stdenv, fetchFromGitHub, ocaml, findlib, astring, pprint }: + +if !stdenv.lib.versionAtLeast ocaml.version "4.02" +then throw "ocp-ocamlres is not available for OCaml ${ocaml.version}" +else stdenv.mkDerivation rec { name = "ocaml${ocaml.version}-ocp-ocamlres-${version}"; - version = "0.3"; + version = "0.4"; src = fetchFromGitHub { owner = "OCamlPro"; repo = "ocp-ocamlres"; rev = "v${version}"; - sha256 = "0pm1g38f6pmch1x4pcc09ky587x5g7p7n9dfbbif8zkjqr603ixg"; + sha256 = "0smfwrj8qhzknhzawygxi0vgl2af4vyi652fkma59rzjpvscqrnn"; }; - buildInputs = [ ocaml findlib pprint ]; + buildInputs = [ ocaml findlib astring pprint ]; createFindlibDestdir = true; installFlags = [ "BINDIR=$(out)/bin" ]; |