Merge branch 'staging-next' into staging

This commit is contained in:
Jan Tojnar
2021-04-25 08:22:13 +02:00
144 changed files with 1324 additions and 720 deletions

View File

@@ -1,4 +1,4 @@
{ lib, fetchurl, buildDunePackage, ounit, cstruct, dune-configurator, eqaf, pkg-config
{ lib, fetchurl, buildDunePackage, ounit, cstruct, dune-configurator, eqaf, bigarray-compat, pkg-config
, withFreestanding ? false
, ocaml-freestanding
}:
@@ -7,11 +7,11 @@ buildDunePackage rec {
minimumOCamlVersion = "4.08";
pname = "mirage-crypto";
version = "0.9.2";
version = "0.10.0";
src = fetchurl {
url = "https://github.com/mirage/mirage-crypto/releases/download/v${version}/mirage-crypto-v${version}.tbz";
sha256 = "da200c0afdbe63474ab19f2bc616e26c10b0e4fbb53fb97fefb2794212f5d442";
sha256 = "20915c53ddb658c53f588c414f13676bc8ad3cd734d9ed909225ea080dd8144d";
};
useDune2 = true;
@@ -21,7 +21,7 @@ buildDunePackage rec {
nativeBuildInputs = [ dune-configurator pkg-config ];
propagatedBuildInputs = [
cstruct eqaf
cstruct eqaf bigarray-compat
] ++ lib.optionals withFreestanding [
ocaml-freestanding
];

View File

@@ -4,12 +4,11 @@
, buildDunePackage
, ocaml
, gen
, ppx_tools_versioned
, ocaml-migrate-parsetree
, ppxlib
, uchar
}:
if lib.versionOlder ocaml.version "4.02.3"
if lib.versionOlder ocaml.version "4.08"
then throw "sedlex is not available for OCaml ${ocaml.version}"
else
@@ -32,7 +31,7 @@ let
in
buildDunePackage rec {
pname = "sedlex";
version = "2.2";
version = "2.3";
useDune2 = true;
@@ -40,11 +39,11 @@ buildDunePackage rec {
owner = "ocaml-community";
repo = "sedlex";
rev = "v${version}";
sha256 = "18dwl2is5j26z6b1c47b81wvcpxw44fasppdadsrs9vsw63rwcm3";
sha256 = "0iw3phlaqr27jdf857hmj5v5hdl0vngbb2h37p2ll18sw991fxar";
};
propagatedBuildInputs = [
gen uchar ocaml-migrate-parsetree ppx_tools_versioned
gen uchar ppxlib
];
preBuild = ''
@@ -60,6 +59,7 @@ buildDunePackage rec {
meta = {
homepage = "https://github.com/ocaml-community/sedlex";
changelog = "https://github.com/ocaml-community/sedlex/raw/v${version}/CHANGES";
description = "An OCaml lexer generator for Unicode";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.marsam ];