Merge pull request #12064 from FlorentBecker/eliom42

Eliom42

vbgl c23b0856 3f10b287

+29 -36
+2 -2
pkgs/development/ocaml-modules/cohttp/default.nix
··· 4 5 buildOcaml rec { 6 name = "cohttp"; 7 - version = "0.17.1"; 8 9 minimumSupportedOcamlVersion = "4.02"; 10 11 src = fetchurl { 12 url = "https://github.com/mirage/ocaml-cohttp/archive/v${version}.tar.gz"; 13 - sha256 = "fb124fb2fb5ff2e74559bf380627f6a537e208c1518ddcb01f0d37b62b55f673"; 14 }; 15 16 buildInputs = [ alcotest ];
··· 4 5 buildOcaml rec { 6 name = "cohttp"; 7 + version = "0.19.3"; 8 9 minimumSupportedOcamlVersion = "4.02"; 10 11 src = fetchurl { 12 url = "https://github.com/mirage/ocaml-cohttp/archive/v${version}.tar.gz"; 13 + sha256 = "1nrzpd4h52c1hnzcgsz462676saj9zss708ng001h54dglk8i1iv"; 14 }; 15 16 buildInputs = [ alcotest ];
+3 -3
pkgs/development/ocaml-modules/eliom/default.nix
··· 8 stdenv.mkDerivation rec 9 { 10 pname = "eliom"; 11 - version = "4.1.0"; 12 name = "${pname}-${version}"; 13 14 src = fetchurl { 15 - url = https://github.com/ocsigen/eliom/archive/4.1.0.tar.gz; 16 - sha256 = "10v7mrq3zsbxdlg8k8xif777mbvcdpabvnd1g7p2yqivr7f1qm24"; 17 }; 18 19 patches = [ ./camlp4.patch ];
··· 8 stdenv.mkDerivation rec 9 { 10 pname = "eliom"; 11 + version = "4.2.0"; 12 name = "${pname}-${version}"; 13 14 src = fetchurl { 15 + url = https://github.com/ocsigen/eliom/archive/4.2.tar.gz; 16 + sha256 = "0gbqzgn6xgpq6irz2sfr92qj3hjcwl45wy0inc4ps5r15nvq1l9h"; 17 }; 18 19 patches = [ ./camlp4.patch ];
+4 -5
pkgs/development/ocaml-modules/lwt/default.nix
··· 1 { stdenv, fetchzip, which, cryptopp, ocaml, findlib, ocaml_react, ocaml_ssl, libev, pkgconfig, ncurses, ocaml_oasis, ocaml_text, glib, camlp4, ppx_tools }: 2 3 let 4 - version = "2.4.6"; 5 inherit (stdenv.lib) optional getVersion versionAtLeast; 6 ocaml_version = getVersion ocaml; 7 in ··· 13 14 src = fetchzip { 15 url = "https://github.com/ocsigen/lwt/archive/${version}.tar.gz"; 16 - sha256 = "0idci0zadpb8hmblszsrvg6yf36w5a9y6rsdwjc3jww71dgrw5d9"; 17 }; 18 19 buildInputs = [ ocaml_oasis pkgconfig which cryptopp ocaml findlib glib ncurses camlp4 ppx_tools ]; 20 21 propagatedBuildInputs = [ ocaml_react ocaml_ssl ocaml_text libev ]; 22 23 - configureFlags = [ "--enable-react" "--enable-glib" "--enable-ssl" "--enable-text" ] 24 - ++ [ (if versionAtLeast ocaml_version "4.02" then "--enable-ppx" else "--disable-ppx") ] 25 - ++ optional (versionAtLeast ocaml_version "4.0" && ! versionAtLeast ocaml_version "4.02") "--enable-toplevel"; 26 27 createFindlibDestdir = true; 28
··· 1 { stdenv, fetchzip, which, cryptopp, ocaml, findlib, ocaml_react, ocaml_ssl, libev, pkgconfig, ncurses, ocaml_oasis, ocaml_text, glib, camlp4, ppx_tools }: 2 3 let 4 + version = "2.5.0"; 5 inherit (stdenv.lib) optional getVersion versionAtLeast; 6 ocaml_version = getVersion ocaml; 7 in ··· 13 14 src = fetchzip { 15 url = "https://github.com/ocsigen/lwt/archive/${version}.tar.gz"; 16 + sha256 = "0jgg51aqbnia33l7bhgirnfpqybjwzpd85qzzd9znnc1a27gv8vr"; 17 }; 18 19 buildInputs = [ ocaml_oasis pkgconfig which cryptopp ocaml findlib glib ncurses camlp4 ppx_tools ]; 20 21 propagatedBuildInputs = [ ocaml_react ocaml_ssl ocaml_text libev ]; 22 23 + configureFlags = [ "--enable-glib" "--enable-ssl" "--enable-react" "--enable-camlp4"] 24 + ++ [ (if versionAtLeast ocaml_version "4.02" then "--enable-ppx" else "--disable-ppx") ]; 25 26 createFindlibDestdir = true; 27
+3 -3
pkgs/development/ocaml-modules/ocsigen-server/default.nix
··· 9 in 10 11 stdenv.mkDerivation { 12 - name = "ocsigenserver-2.5"; 13 14 src = fetchurl { 15 - url = https://github.com/ocsigen/ocsigenserver/archive/2.5.tar.gz; 16 - sha256 = "0ayzlzjwg199va4sclsldlcp0dnwdj45ahhg9ckb51m28c2pw46r"; 17 }; 18 19 buildInputs = [ocaml which findlib ocaml_react ocaml_ssl ocaml_lwt
··· 9 in 10 11 stdenv.mkDerivation { 12 + name = "ocsigenserver-2.6"; 13 14 src = fetchurl { 15 + url = https://github.com/ocsigen/ocsigenserver/archive/2.6.tar.gz; 16 + sha256 = "0638xvlr0sssvjarmdwhgh7vbgdx8wiyjwq73w1bkjfwl7qm21zp"; 17 }; 18 19 buildInputs = [ocaml which findlib ocaml_react ocaml_ssl ocaml_lwt
+4 -5
pkgs/development/ocaml-modules/ssl/default.nix
··· 2 3 let 4 ocaml_version = (builtins.parseDrvName ocaml.name).version; 5 - version = "0.4.7"; 6 in 7 8 stdenv.mkDerivation { 9 name = "ocaml-ssl-${version}"; 10 11 src = fetchurl { 12 - url = "mirror://debian/pool/main/o/ocaml-ssl/ocaml-ssl_${version}.orig.tar.gz"; 13 - sha256 = "0i0j89b10n3xmmawcq4qfwa42133pddw4x5nysmsnpd15srv5gp9"; 14 }; 15 16 buildInputs = [which ocaml findlib]; ··· 18 propagatedBuildInputs = [openssl]; 19 20 dontAddPrefix = true; 21 - 22 - configureFlags = "--disable-ldconf"; 23 24 createFindlibDestdir = true; 25
··· 2 3 let 4 ocaml_version = (builtins.parseDrvName ocaml.name).version; 5 + version = "0.5.2"; 6 in 7 8 stdenv.mkDerivation { 9 name = "ocaml-ssl-${version}"; 10 11 src = fetchurl { 12 + url = "http://downloads.sourceforge.net/project/savonet/ocaml-ssl/0.5.2/ocaml-ssl-0.5.2.tar.gz"; 13 + 14 + sha256 = "0341rm8aqrckmhag1lrqfnl17v6n4ci8ibda62ahkkn5cxd58cpp"; 15 }; 16 17 buildInputs = [which ocaml findlib]; ··· 19 propagatedBuildInputs = [openssl]; 20 21 dontAddPrefix = true; 22 23 createFindlibDestdir = true; 24
-11
pkgs/development/tools/ocaml/js_of_ocaml/Makefile.conf.diff
··· 8 9 #### 10 11 - --- old/Makefile 2014-09-30 16:40:37.000000000 +0200 12 - +++ new/Makefile 2015-10-14 10:28:41.366815864 +0200 13 - @@ -52,7 +52,7 @@ 14 - install-bin: 15 - install -d -m 755 $(BINDIR) 16 - install $(BIN) $(BINDIR) 17 - - install $(TOOLS) $(BINDIR) 18 - + install $(TOOLS) $(BINDIR) || true 19 - 20 - uninstall: uninstall-lib uninstall-bin 21 -
··· 8 9 #### 10
+13 -7
pkgs/development/tools/ocaml/js_of_ocaml/default.nix
··· 1 {stdenv, fetchurl, ocaml, findlib, ocaml_lwt, menhir, ocsigen_deriving, camlp4, 2 - cmdliner, tyxml, reactivedata}: 3 4 stdenv.mkDerivation { 5 - name = "js_of_ocaml-2.5"; 6 src = fetchurl { 7 - url = https://github.com/ocsigen/js_of_ocaml/archive/2.5.tar.gz; 8 - sha256 = "1prm08nf8szmd3p13ysb0yx1cy6lr671bnwsp25iny8hfbs39sjv"; 9 }; 10 - 11 buildInputs = [ocaml findlib menhir ocsigen_deriving 12 - cmdliner tyxml reactivedata]; 13 propagatedBuildInputs = [ ocaml_lwt camlp4 ]; 14 15 - patches = [ ./Makefile.conf.diff ]; 16 17 createFindlibDestdir = true; 18
··· 1 {stdenv, fetchurl, ocaml, findlib, ocaml_lwt, menhir, ocsigen_deriving, camlp4, 2 + cmdliner, tyxml, reactivedata, cppo, which, base64}: 3 4 + let camlp4_patch = fetchurl { 5 + url = "https://github.com/FlorentBecker/js_of_ocaml/commit/3b511c5bb777d5049c49d7a04c01f142de7096b9.patch"; 6 + sha256 = "c92eda8be504cd41eb242166fc815af496243b63d4d21b169f5b62ec5ace2d39"; 7 + }; 8 + in 9 + 10 stdenv.mkDerivation { 11 + name = "js_of_ocaml-2.6"; 12 src = fetchurl { 13 + url = https://github.com/ocsigen/js_of_ocaml/archive/2.6.tar.gz; 14 + sha256 = "0q34lrn70dvz41m78bwgriyq6dxk97g8gcyg80nvxii4jp86dw61"; 15 }; 16 + 17 buildInputs = [ocaml findlib menhir ocsigen_deriving 18 + cmdliner tyxml reactivedata cppo which base64]; 19 propagatedBuildInputs = [ ocaml_lwt camlp4 ]; 20 21 + patches = [ ./Makefile.conf.diff camlp4_patch ]; 22 23 createFindlibDestdir = true; 24