nixpkgs/pkgs/development/ocaml-modules/camomile/default.nix

28 lines
682 B
Nix
Raw Normal View History

2018-09-05 18:11:47 +02:00
{ stdenv, fetchFromGitHub, ocaml, findlib, dune, cppo }:
2016-10-05 09:32:30 +02:00
stdenv.mkDerivation rec {
2018-10-04 02:24:28 +02:00
version = "1.0.1";
2017-10-19 23:09:20 +02:00
name = "ocaml${ocaml.version}-camomile-${version}";
2017-10-19 23:09:20 +02:00
src = fetchFromGitHub {
owner = "yoriyuki";
repo = "camomile";
2018-10-04 02:24:28 +02:00
rev = "${version}";
sha256 = "1pfxr9kzkpd5bsdqrpxasfxkawwkg4cpx3m1h6203sxi7qv1z3fn";
2017-10-19 23:09:20 +02:00
};
2018-09-05 18:11:47 +02:00
buildInputs = [ ocaml findlib dune cppo ];
2017-10-19 23:09:20 +02:00
configurePhase = "ocaml configure.ml --share $out/share/camomile";
2018-09-05 18:11:47 +02:00
inherit (dune) installPhase;
2017-10-19 23:09:20 +02:00
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";
};
}