ocamlPackages.ocsigen_server: 2.18.0 → 4.0.1

ocamlPackages.eliom: 6.12.4 → 8.6.0

ocamlPackages.ocsigen-start: 2.18.0 → 4.3.0

authored by Vincent Laporte and committed by Vincent Laporte dfc20639 781482a3

+41 -43
+5 -15
pkgs/development/ocaml-modules/eliom/default.nix
··· 1 - { stdenv, lib, fetchzip, fetchpatch, which, ocsigen_server, ocaml, 2 lwt_react, 3 opaline, ppx_deriving, findlib 4 , ocaml-migrate-parsetree ··· 7 , js_of_ocaml-lwt 8 , js_of_ocaml-tyxml 9 , lwt_ppx 10 }: 11 12 - if !lib.versionAtLeast ocaml.version "4.07" 13 - then throw "eliom is not available for OCaml ${ocaml.version}" 14 - else 15 - 16 stdenv.mkDerivation rec 17 { 18 pname = "eliom"; 19 - version = "6.12.4"; 20 21 src = fetchzip { 22 url = "https://github.com/ocsigen/eliom/archive/${version}.tar.gz"; 23 - sha256 = "00m6v2k4mg8705dy41934lznl6gj91i6dk7p1nkaccm51nna25kz"; 24 }; 25 26 - patches = [ 27 - # Compatibility with js_of_ocaml >= 3.9.0, remove at next release 28 - (fetchpatch { 29 - url = "https://github.com/ocsigen/eliom/commit/4106a4217956f7b74a8ef3f73a1e1f55e02ade45.patch"; 30 - sha256 = "1cgbvpljn9x6zxirxf3rdjrsdwy319ykz3qq03c36cc40hy2w13p"; 31 - }) 32 - ]; 33 - 34 buildInputs = [ ocaml which findlib js_of_ocaml-ocamlbuild 35 ocaml-migrate-parsetree 36 js_of_ocaml-ppx_deriving_json opaline 37 ppx_tools_versioned 38 ]; 39 40 propagatedBuildInputs = [
··· 1 + { stdenv, lib, fetchzip, which, ocsigen_server, ocaml, 2 lwt_react, 3 opaline, ppx_deriving, findlib 4 , ocaml-migrate-parsetree ··· 7 , js_of_ocaml-lwt 8 , js_of_ocaml-tyxml 9 , lwt_ppx 10 + , ocamlnet 11 }: 12 13 stdenv.mkDerivation rec 14 { 15 pname = "eliom"; 16 + version = "8.6.0"; 17 18 src = fetchzip { 19 url = "https://github.com/ocsigen/eliom/archive/${version}.tar.gz"; 20 + sha256 = "0s1hpawwhqp4qcy8w1067n8c6zg8jcjpzplc39bjbb1ycqw667j9"; 21 }; 22 23 buildInputs = [ ocaml which findlib js_of_ocaml-ocamlbuild 24 ocaml-migrate-parsetree 25 js_of_ocaml-ppx_deriving_json opaline 26 ppx_tools_versioned 27 + ocamlnet 28 ]; 29 30 propagatedBuildInputs = [
+27 -18
pkgs/development/ocaml-modules/ocsigen-server/default.nix
··· 1 - { stdenv, lib, fetchFromGitHub, which, ocaml, findlib, lwt_react, ssl, lwt_ssl 2 - , lwt_log, ocamlnet, ocaml_pcre, cryptokit, tyxml, xml-light, ipaddr 3 , pgocaml, camlzip, ocaml_sqlite3 4 , makeWrapper 5 }: 6 7 - if !lib.versionAtLeast ocaml.version "4.06.1" 8 - then throw "ocsigenserver is not available for OCaml ${ocaml.version}" 9 - else 10 11 - let mkpath = p: n: 12 - "${p}/lib/ocaml/${ocaml.version}/site-lib/${n}"; 13 - in 14 15 - stdenv.mkDerivation rec { 16 - version = "2.18.0"; 17 pname = "ocsigenserver"; 18 19 src = fetchFromGitHub { 20 owner = "ocsigen"; 21 repo = "ocsigenserver"; 22 rev = version; 23 - sha256 = "0c61wkq8ddy3qxb2x1jz04rz0722hk92r6jl1zvgikh74m5p5ipp"; 24 }; 25 26 - nativeBuildInputs = [ makeWrapper ]; 27 - buildInputs = [ which ocaml findlib lwt_react pgocaml camlzip ocaml_sqlite3 ]; 28 29 - propagatedBuildInputs = [ cryptokit ipaddr lwt_log lwt_ssl ocamlnet 30 - ocaml_pcre tyxml xml-light 31 ]; 32 33 configureFlags = [ "--root $(out)" "--prefix /" ]; 34 35 dontAddPrefix = true; 36 37 - createFindlibDestdir = true; 38 39 postFixup = 40 '' 41 rm -rf $out/var/run 42 wrapProgram $out/bin/ocsigenserver \ 43 - --suffix CAML_LD_LIBRARY_PATH : "${mkpath ssl "ssl"}:${mkpath ocamlnet "netsys"}:${mkpath ocamlnet "netstring"}:${mkpath ocaml_pcre "pcre"}:${mkpath ocaml_sqlite3 "sqlite3"}" 44 ''; 45 46 dontPatchShebangs = true; ··· 51 longDescription ='' 52 A full featured Web server. It implements most features of the HTTP protocol, and has a very powerful extension mechanism that make very easy to plug your own OCaml modules for generating pages. 53 ''; 54 - license = lib.licenses.lgpl21; 55 platforms = ocaml.meta.platforms or []; 56 maintainers = [ lib.maintainers.gal_bolle ]; 57 };
··· 1 + { lib, buildDunePackage, fetchFromGitHub, which, ocaml, lwt_react, ssl, lwt_ssl 2 + , bigstringaf, lwt, cstruct, mirage-crypto, zarith, mirage-crypto-ec, ptime, mirage-crypto-rng, mtime, ca-certs 3 + , cohttp, cohttp-lwt-unix, hmap 4 + , lwt_log, ocaml_pcre, cryptokit, xml-light, ipaddr 5 , pgocaml, camlzip, ocaml_sqlite3 6 , makeWrapper 7 }: 8 9 + let mkpath = p: 10 + "${p}/lib/ocaml/${ocaml.version}/site-lib/stublibs"; 11 + in 12 13 + let caml_ld_library_path = 14 + lib.concatMapStringsSep ":" mkpath [ 15 + bigstringaf lwt ssl cstruct mirage-crypto zarith mirage-crypto-ec ptime mirage-crypto-rng mtime ca-certs cryptokit ocaml_pcre 16 + ] 17 + ; in 18 19 + buildDunePackage rec { 20 + version = "4.0.1"; 21 pname = "ocsigenserver"; 22 + 23 + useDune2 = true; 24 + minimalOCamlVersion = "4.08"; 25 26 src = fetchFromGitHub { 27 owner = "ocsigen"; 28 repo = "ocsigenserver"; 29 rev = version; 30 + sha256 = "0pid4irkmdmx1d6n2rvcvx5mnljl3hazzdqc3bql72by35izfac6"; 31 }; 32 33 + nativeBuildInputs = [ makeWrapper which ]; 34 + buildInputs = [ lwt_react pgocaml camlzip ocaml_sqlite3 ]; 35 36 + propagatedBuildInputs = [ cohttp cohttp-lwt-unix cryptokit hmap ipaddr lwt_log lwt_ssl 37 + ocaml_pcre xml-light 38 ]; 39 40 configureFlags = [ "--root $(out)" "--prefix /" ]; 41 42 dontAddPrefix = true; 43 44 + postConfigure = '' 45 + make -C src confs 46 + ''; 47 48 postFixup = 49 '' 50 rm -rf $out/var/run 51 wrapProgram $out/bin/ocsigenserver \ 52 + --suffix CAML_LD_LIBRARY_PATH : "${caml_ld_library_path}" 53 ''; 54 55 dontPatchShebangs = true; ··· 60 longDescription ='' 61 A full featured Web server. It implements most features of the HTTP protocol, and has a very powerful extension mechanism that make very easy to plug your own OCaml modules for generating pages. 62 ''; 63 + license = lib.licenses.lgpl21Only; 64 platforms = ocaml.meta.platforms or []; 65 maintainers = [ lib.maintainers.gal_bolle ]; 66 };
+9 -10
pkgs/development/ocaml-modules/ocsigen-start/default.nix
··· 1 { stdenv, lib, fetchFromGitHub, ocaml, findlib, ocsigen-toolkit, pgocaml_ppx, safepass, yojson 2 , cohttp-lwt-unix 3 , resource-pooling 4 }: 5 6 stdenv.mkDerivation rec { 7 name = "ocaml${ocaml.version}-ocsigen-start-${version}"; 8 - version = "2.18.0"; 9 10 buildInputs = [ ocaml findlib ]; 11 - propagatedBuildInputs = [ pgocaml_ppx safepass ocsigen-toolkit yojson resource-pooling cohttp-lwt-unix ]; 12 13 patches = [ ./templates-dir.patch ]; 14 15 - postPatch = '' 16 - substituteInPlace "src/os_db.ml" --replace "citext" "text" 17 - ''; 18 - 19 - createFindlibDestdir = true; 20 - 21 src = fetchFromGitHub { 22 owner = "ocsigen"; 23 repo = "ocsigen-start"; 24 rev = version; 25 - sha256 = "0wvh4c26g6qd6i1fryilcqz9giz7v6pnhc90sknhxh6jmwrbjl50"; 26 }; 27 28 meta = { 29 homepage = "http://ocsigen.org/ocsigen-start"; 30 description = "Eliom application skeleton"; 31 longDescription ='' 32 An Eliom application skeleton, ready to use to build your own application with users, (pre)registration, notifications, etc. 33 ''; 34 - license = lib.licenses.lgpl21; 35 inherit (ocaml.meta) platforms; 36 maintainers = [ lib.maintainers.gal_bolle ]; 37 };
··· 1 { stdenv, lib, fetchFromGitHub, ocaml, findlib, ocsigen-toolkit, pgocaml_ppx, safepass, yojson 2 , cohttp-lwt-unix 3 , resource-pooling 4 + , ocamlnet 5 }: 6 7 stdenv.mkDerivation rec { 8 name = "ocaml${ocaml.version}-ocsigen-start-${version}"; 9 + version = "4.3.0"; 10 11 buildInputs = [ ocaml findlib ]; 12 + propagatedBuildInputs = [ pgocaml_ppx safepass ocsigen-toolkit yojson resource-pooling cohttp-lwt-unix ocamlnet ]; 13 14 patches = [ ./templates-dir.patch ]; 15 16 src = fetchFromGitHub { 17 owner = "ocsigen"; 18 repo = "ocsigen-start"; 19 rev = version; 20 + sha256 = "0lkl59dwzyqq2lyr46fyjr27ms0fp9h59xfsn37faaavdd7v0h98"; 21 }; 22 23 + preInstall = '' 24 + mkdir -p $OCAMLFIND_DESTDIR 25 + ''; 26 + 27 meta = { 28 homepage = "http://ocsigen.org/ocsigen-start"; 29 description = "Eliom application skeleton"; 30 longDescription ='' 31 An Eliom application skeleton, ready to use to build your own application with users, (pre)registration, notifications, etc. 32 ''; 33 + license = lib.licenses.lgpl21Only; 34 inherit (ocaml.meta) platforms; 35 maintainers = [ lib.maintainers.gal_bolle ]; 36 };