ocamlPackages.sedlex_2: 2.2 -> 2.3

This commit is contained in:
Mario Rodas 2021-04-16 04:20:00 +00:00 committed by Vincent Laporte
parent ac0319febf
commit 53a3fc2856

View file

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