Merge branch 'master' into unused5

This commit is contained in:
Jörg Thalheim
2018-07-21 15:41:22 +01:00
committed by GitHub
203 changed files with 1655 additions and 627 deletions
@@ -1,8 +1,8 @@
{ stdenv, fetchurl, buildOcaml, ocaml, findlib, ocamlbuild, topkg }:
{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, topkg }:
buildOcaml rec {
stdenv.mkDerivation rec {
version = "0.8.3";
name = "astring";
name = "ocaml${ocaml.version}-astring-${version}";
src = fetchurl {
url = "http://erratique.ch/software/astring/releases/astring-${version}.tbz";
@@ -1,9 +1,9 @@
{ stdenv, buildOcaml, fetchurl, ocamlbuild, findlib
{ stdenv, fetchurl, ocaml, ocamlbuild, findlib
, jbuilder, sexplib, ppx_sexp_conv
}:
buildOcaml rec {
name = "ipaddr";
stdenv.mkDerivation rec {
name = "ocaml${ocaml.version}-ipaddr-${version}";
version = "2.8.0";
src = fetchurl {
@@ -11,7 +11,7 @@ buildOcaml rec {
sha256 = "1amb1pbm9ybpxy6190qygpj6nmbzzs2r6vx4xh5r6v89szx9rfxw";
};
buildInputs = [ findlib ocamlbuild jbuilder ];
buildInputs = [ ocaml findlib ocamlbuild jbuilder ];
propagatedBuildInputs = [ ppx_sexp_conv sexplib ];
inherit (jbuilder) installPhase;
@@ -1,15 +1,26 @@
{ stdenv, buildOcaml, fetchurl, ppx_tools }:
{ stdenv, fetchurl, ocaml, findlib, jbuilder, alcotest
, ocaml-migrate-parsetree
}:
buildOcaml rec {
name = "ppx_blob";
version = "0.2";
stdenv.mkDerivation rec {
name = "ocaml${ocaml.version}-ppx_blob-${version}";
version = "0.4.0";
src = fetchurl {
url = "https://github.com/johnwhitington/ppx_blob/archive/v${version}.tar.gz";
sha256 = "0kvqfm47f4xbgz0cl7ayz29myyb24xskm35svqrgakjq12nkpsss";
url = "https://github.com/johnwhitington/ppx_blob/releases/download/${version}/ppx_blob-${version}.tbz";
sha256 = "1xmslk1mwdzhy1bydgsjlcb7h544c39hvxa8lywp8w72gaggjl16";
};
buildInputs = [ ppx_tools ];
unpackCmd = "tar xjf $curSrc";
buildInputs = [ ocaml findlib jbuilder alcotest ocaml-migrate-parsetree ];
buildPhase = "dune build -p ppx_blob";
doCheck = true;
checkPhase = "dune runtest -p ppx_blob";
inherit (jbuilder) installPhase;
meta = with stdenv.lib; {
homepage = https://github.com/johnwhitington/ppx_blob;
@@ -1,7 +1,11 @@
{ stdenv, buildOcaml, ocaml, fetchzip
{ stdenv, ocaml, findlib, ocamlbuild, fetchzip
, cppo, ppx_tools, ppx_derivers, result, ounit, ocaml-migrate-parsetree
}:
if !stdenv.lib.versionAtLeast ocaml.version "4.02"
then throw "ppx_deriving is not available for OCaml ${ocaml.version}"
else
let param =
if ocaml.version == "4.03.0"
then {
@@ -14,23 +18,21 @@ let param =
extraPropagatedBuildInputs = [ ocaml-migrate-parsetree ppx_derivers ];
}; in
buildOcaml rec {
name = "ppx_deriving";
stdenv.mkDerivation rec {
name = "ocaml${ocaml.version}-ppx_deriving-${version}";
inherit (param) version;
minimumSupportedOcamlVersion = "4.02";
src = fetchzip {
url = "https://github.com/whitequark/${name}/archive/v${version}.tar.gz";
url = "https://github.com/ocaml-ppx/ppx_deriving/archive/v${version}.tar.gz";
inherit (param) sha256;
};
hasSharedObjects = true;
buildInputs = [ cppo ounit ];
buildInputs = [ ocaml findlib ocamlbuild cppo ounit ];
propagatedBuildInputs = param.extraPropagatedBuildInputs ++
[ ppx_tools result ];
createFindlibDestdir = true;
installPhase = "OCAMLPATH=$OCAMLPATH:`ocamlfind printconf destdir` make install";
meta = with stdenv.lib; {
@@ -17,6 +17,9 @@ let param = {
"4.06" = {
version = "5.1+4.06.0";
sha256 = "1ww4cspdpgjjsgiv71s0im5yjkr3544x96wsq1vpdacq7dr7zwiw"; };
"4.07" = {
version = "5.1+4.06.0";
sha256 = "1ww4cspdpgjjsgiv71s0im5yjkr3544x96wsq1vpdacq7dr7zwiw"; };
}."${ocaml.meta.branch}";
in
stdenv.mkDerivation {
@@ -1,4 +1,6 @@
{ stdenv, fetchzip, ocaml, findlib, ocamlbuild, camlp4, uutf, markup, ppx_tools_versioned, re
{ stdenv, fetchzip, ocaml, findlib, ocamlbuild, uutf, markup, ppx_tools_versioned, re
, withP4 ? !stdenv.lib.versionAtLeast ocaml.version "4.07"
, camlp4 ? null
}:
assert stdenv.lib.versionAtLeast ocaml.version "4.02";
@@ -13,13 +15,14 @@ stdenv.mkDerivation rec {
sha256 = "1zrkrmxyj5a2cdh4b9zr9anwfk320wv3x0ynxnyxl5za2ix8sld8";
};
buildInputs = [ ocaml findlib ocamlbuild camlp4 ppx_tools_versioned markup ];
buildInputs = [ ocaml findlib ocamlbuild ppx_tools_versioned markup ]
++ stdenv.lib.optional withP4 camlp4;
propagatedBuildInputs = [ uutf re ];
createFindlibDestdir = true;
configureFlags = "--enable-syntax";
configureFlags = stdenv.lib.optional withP4 "--enable-syntax";
meta = with stdenv.lib; {
homepage = http://ocsigen.org/tyxml/;