about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/ocaml-modules/camomile/default.nix
blob: 090b96ece0ccc206b340f473f3b0aade513ac5e0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ lib, fetchFromGitHub, buildDunePackage, cppo }:

buildDunePackage rec {
  pname = "camomile";
  version = "1.0.2";

  useDune2 = true;

  src = fetchFromGitHub {
    owner = "yoriyuki";
    repo = pname;
    rev = version;
    sha256 = "00i910qjv6bpk0nkafp5fg97isqas0bwjf7m6rz11rsxilpalzad";
  };

  buildInputs = [ cppo ];

  configurePhase = ''
    runHook preConfigure
    ocaml configure.ml --share $out/share/camomile
    runHook postConfigure
  '';

  meta = {
    inherit (src.meta) homepage;
    maintainers = [ lib.maintainers.vbgl ];
    license = lib.licenses.lgpl21;
    description = "A Unicode library for OCaml";
  };
}