12 unicodeVersion = "15.0.0";
13 baseUrl = "https://www.unicode.org/Public/${unicodeVersion}";
15 DerivedCoreProperties = fetchurl {
16 url = "${baseUrl}/ucd/DerivedCoreProperties.txt";
17 sha256 = "sha256-02cpC8CGfmtITGg3BTC90aCLazJARgG4x6zK+D4FYo0=";
19 DerivedGeneralCategory = fetchurl {
20 url = "${baseUrl}/ucd/extracted/DerivedGeneralCategory.txt";
21 sha256 = "sha256-/imkXAiCUA5ZEUCqpcT1Bn5qXXRoBhSK80QAxIucBvk=";
24 url = "${baseUrl}/ucd/PropList.txt";
25 sha256 = "sha256-4FwKKBHRE9rkq9gyiEGZo+qNGH7huHLYJAp4ipZUC/0=";
28 buildDunePackage rec {
32 minimalOCamlVersion = "4.08";
34 src = fetchFromGitHub {
35 owner = "ocaml-community";
38 sha256 = "sha256:062a5dvrzvb81l3a9phljrhxfw9nlb61q341q0a6xn65hll3z2wy";
41 propagatedBuildInputs = [
46 rm src/generator/data/dune
47 ln -s ${DerivedCoreProperties} src/generator/data/DerivedCoreProperties.txt
48 ln -s ${DerivedGeneralCategory} src/generator/data/DerivedGeneralCategory.txt
49 ln -s ${PropList} src/generator/data/PropList.txt
57 homepage = "https://github.com/ocaml-community/sedlex";
58 changelog = "https://github.com/ocaml-community/sedlex/raw/v${version}/CHANGES";
59 description = "An OCaml lexer generator for Unicode";
60 license = lib.licenses.mit;
61 maintainers = [ lib.maintainers.marsam ];