summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/camomile/default.nix
blob: 5e156776f860f0ce99fb0434a50f2886d78d49aa (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
{ stdenv, fetchFromGitHub, ocaml, findlib, dune, cppo }:

stdenv.mkDerivation rec {
	version = "1.0.1";
	name = "ocaml${ocaml.version}-camomile-${version}";

	src = fetchFromGitHub {
		owner = "yoriyuki";
		repo = "camomile";
		rev = "${version}";
		sha256 = "1pfxr9kzkpd5bsdqrpxasfxkawwkg4cpx3m1h6203sxi7qv1z3fn";
	};

	buildInputs = [ ocaml findlib dune cppo ];

	configurePhase = "ocaml configure.ml --share $out/share/camomile";

	inherit (dune) installPhase;

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