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

28 lines
682 B
Nix
Raw Normal View History

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