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

28 lines
698 B
Nix
Raw Normal View History

2017-10-19 22:09:20 +01:00
{ stdenv, fetchFromGitHub, ocaml, findlib, jbuilder, cppo }:
2016-10-05 08:32:30 +01:00
stdenv.mkDerivation rec {
2017-11-09 18:52:03 +00:00
version = "0.8.7";
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";
rev = "rel-${version}";
2017-11-09 18:52:03 +00:00
sha256 = "0rh58nl5jrnx01hf0yqbdcc2ncx107pq29zblchww82ci0x1xwsf";
2017-10-19 22:09:20 +01:00
};
2017-10-19 22:09:20 +01:00
buildInputs = [ ocaml findlib jbuilder cppo ];
2017-10-19 22:09:20 +01:00
configurePhase = "ocaml configure.ml --share $out/share/camomile";
2017-10-19 22:09:20 +01:00
inherit (jbuilder) 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";
};
}