Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{
2 lib,
3 fetchFromGitHub,
4 fetchpatch,
5 buildDunePackage,
6 ppxlib,
7 menhir,
8}:
9
10buildDunePackage rec {
11 pname = "mlx";
12 version = "0.9";
13
14 minimalOCamlVersion = "4.14";
15
16 src = fetchFromGitHub {
17 owner = "ocaml-mlx";
18 repo = "mlx";
19 rev = version;
20 hash = "sha256-3hPtyBKD2dp4UJBykOudW6KR2KXPnBuDnuJ1UNLpAp0=";
21 };
22
23 patches = [
24 (fetchpatch {
25 url = "https://github.com/ocaml-mlx/mlx/commit/01771e2a8b45f4f70cfd93533af2af9ed4a28a7e.patch";
26 hash = "sha256-czA2sIORmunIeaHn7kpcuv0y97uJhe6aUEMj/QHEag4=";
27 })
28 ];
29
30 buildInputs = [
31 ppxlib
32 menhir
33 ];
34
35 meta = with lib; {
36 description = "OCaml syntax dialect which adds JSX syntax expressions";
37 homepage = "https://github.com/ocaml-mlx/mlx";
38 license = licenses.lgpl21Plus;
39 maintainers = with maintainers; [ Denommus ];
40 };
41}