Merge master into staging-next

This commit is contained in:
Frederik Rietdijk
2019-07-09 15:46:00 +02:00
102 changed files with 2944 additions and 1758 deletions
@@ -0,0 +1,41 @@
{ stdenv
, lib
, fetchurl
, findlib
, ocaml
, ocamlbuild
, topkg
}:
let
minimumSupportedOcamlVersion = "4.02.0";
in
assert lib.versionOlder minimumSupportedOcamlVersion ocaml.version;
stdenv.mkDerivation rec {
pname = "hmap";
version = "0.8.1";
name = "ocaml${ocaml.version}-${pname}-${version}";
src = fetchurl {
url = "http://erratique.ch/software/hmap/releases/${pname}-${version}.tbz";
sha256 = "10xyjy4ab87z7jnghy0wnla9wrmazgyhdwhr4hdmxxdn28dxn03a";
};
buildInputs = [ ocaml ocamlbuild findlib topkg ];
inherit (topkg) installPhase;
buildPhase = "${topkg.run} build --tests true";
doCheck = true;
checkPhase = "${topkg.run} test";
meta = {
description = "Heterogeneous value maps for OCaml";
homepage = "https://erratique.ch/software/hmap";
license = lib.licenses.isc;
maintainers = [ lib.maintainers.pmahoney ];
};
}
@@ -0,0 +1,30 @@
{ buildDunePackage
, ppx_sexp_conv
, ppx_fields_conv
, cmdliner
, cohttp-lwt-unix
, logs
, magic-mime
, opium_kernel
, stringext
, alcotest
}:
buildDunePackage rec {
pname = "opium";
inherit (opium_kernel) version src meta minimumOCamlVersion;
doCheck = true;
buildInputs = [
ppx_sexp_conv ppx_fields_conv
alcotest
];
propagatedBuildInputs = [
opium_kernel cmdliner cohttp-lwt-unix magic-mime logs stringext
];
}
@@ -0,0 +1,42 @@
{ lib
, buildDunePackage
, fetchFromGitHub
, ppx_fields_conv
, ppx_sexp_conv
, cohttp-lwt
, ezjsonm
, hmap
}:
buildDunePackage rec {
pname = "opium_kernel";
version = "0.17.1";
minimumOCamlVersion = "4.04.1";
src = fetchFromGitHub {
owner = "rgrinberg";
repo = "opium";
rev = "v${version}";
sha256 = "03xzh0ik6k3c0yn1w1avph667vdagwclzimwwrlf9qdxnzxvcnp3";
};
doCheck = true;
buildInputs = [
ppx_sexp_conv ppx_fields_conv
];
propagatedBuildInputs = [
hmap cohttp-lwt ezjsonm
];
meta = {
description = "Sinatra like web toolkit for OCaml based on cohttp & lwt";
homepage = "https://github.com/rgrinberg/opium";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.pmahoney ];
};
}