diff options
author | Vincent Laporte <Vincent.Laporte@gmail.com> | 2016-12-10 09:59:01 +0000 |
---|---|---|
committer | Vincent Laporte <Vincent.Laporte@gmail.com> | 2017-01-13 06:38:11 +0000 |
commit | 6f48e4d99dfa02f58f9ef4c201358cadd32b0443 (patch) | |
tree | 30e37402b8580adbcbdc0573fa14656482253b70 /pkgs/development/ocaml-modules/eliom | |
parent | 6b546f254340f16dae30bfc00e3b6ca2373e96d1 (diff) | |
download | nixlib-6f48e4d99dfa02f58f9ef4c201358cadd32b0443.tar nixlib-6f48e4d99dfa02f58f9ef4c201358cadd32b0443.tar.gz nixlib-6f48e4d99dfa02f58f9ef4c201358cadd32b0443.tar.bz2 nixlib-6f48e4d99dfa02f58f9ef4c201358cadd32b0443.tar.lz nixlib-6f48e4d99dfa02f58f9ef4c201358cadd32b0443.tar.xz nixlib-6f48e4d99dfa02f58f9ef4c201358cadd32b0443.tar.zst nixlib-6f48e4d99dfa02f58f9ef4c201358cadd32b0443.zip |
ocamlPackages.eliom: 5.0.0 -> 6.0.0
Diffstat (limited to 'pkgs/development/ocaml-modules/eliom')
-rw-r--r-- | pkgs/development/ocaml-modules/eliom/default.nix | 26 |
1 files changed, 10 insertions, 16 deletions
diff --git a/pkgs/development/ocaml-modules/eliom/default.nix b/pkgs/development/ocaml-modules/eliom/default.nix index 293faad2301d..f3c9f4cecefe 100644 --- a/pkgs/development/ocaml-modules/eliom/default.nix +++ b/pkgs/development/ocaml-modules/eliom/default.nix @@ -1,37 +1,31 @@ -{ buildOcaml, stdenv, fetchurl, which, ocsigen_server, ocsigen_deriving, ocaml, +{ stdenv, fetchurl, which, ocsigen_server, ocsigen_deriving, ocaml, js_of_ocaml, ocaml_react, ocaml_lwt, calendar, cryptokit, tyxml, ipaddr, ocamlnet, ocaml_ssl, ocaml_pcre, ocaml_optcomp, - reactivedata, opam, ppx_tools, ppx_deriving, camlp4}: + reactivedata, opam, ppx_tools, ppx_deriving, findlib +}: -let ocamlVersion = (stdenv.lib.getVersion ocaml); in -buildOcaml rec +assert stdenv.lib.versionAtLeast ocaml.version "4.02"; + +stdenv.mkDerivation rec { pname = "eliom"; - version = "5.0.0"; + version = "6.0.0"; name = "${pname}-${version}"; src = fetchurl { url = "https://github.com/ocsigen/eliom/archive/${version}.tar.gz"; - sha256 = "1g9wq2qpn0sgzyb6iq0h9afq5p68il4h8pc7jppqsislk87m09k7"; + sha256 = "1yaqi5fdzvi2ga412chw5rk3533a3xamwfmias1crk793d43cmpc"; }; patches = [ ./camlp4.patch ]; - buildInputs = [ which ocaml_optcomp opam ppx_tools camlp4 ]; + buildInputs = [ ocaml which findlib ocaml_optcomp opam ppx_tools ]; propagatedBuildInputs = [ ocaml_lwt reactivedata tyxml ipaddr ocsigen_server ppx_deriving ocsigen_deriving js_of_ocaml calendar cryptokit ocamlnet ocaml_react ocaml_ssl ocaml_pcre ]; - preConfigure = stdenv.lib.optionalString (!stdenv.lib.versionAtLeast ocamlVersion "4.02") '' - export PPX=false - ''; - - installPhase = - ''opam-installer --script --prefix=$out ${pname}.install > install.sh - sh install.sh - ln -s $out/lib/${pname} $out/lib/ocaml/${ocamlVersion}/site-lib/ - ''; + installPhase = "opam-installer -i --prefix=$out --libdir=$OCAMLFIND_DESTDIR"; createFindlibDestdir = true; |