2019-07-05 13:28:06 +01:00
|
|
|
{ stdenv, fetchFromGitHub, ocaml, dune, cppo, findlib }:
|
* Add ocaml packages findlib, camlzip, ocaml-ssl, ocaml-batteries, menhir, camomile, ocaml-lwt, cryptokit, ocaml-cryptgps, ounit, ocaml-react
svn path=/nixpkgs/trunk/; revision=25041
2010-12-09 15:40:04 +00:00
|
|
|
|
2019-07-05 13:28:06 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2018-11-05 10:21:46 +00:00
|
|
|
pname = "camomile";
|
2018-10-04 01:24:28 +01:00
|
|
|
version = "1.0.1";
|
* Add ocaml packages findlib, camlzip, ocaml-ssl, ocaml-batteries, menhir, camomile, ocaml-lwt, cryptokit, ocaml-cryptgps, ounit, ocaml-react
svn path=/nixpkgs/trunk/; revision=25041
2010-12-09 15:40:04 +00:00
|
|
|
|
2017-10-19 22:09:20 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "yoriyuki";
|
2018-11-05 10:21:46 +00:00
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2018-10-04 01:24:28 +01:00
|
|
|
sha256 = "1pfxr9kzkpd5bsdqrpxasfxkawwkg4cpx3m1h6203sxi7qv1z3fn";
|
2017-10-19 22:09:20 +01:00
|
|
|
};
|
* Add ocaml packages findlib, camlzip, ocaml-ssl, ocaml-batteries, menhir, camomile, ocaml-lwt, cryptokit, ocaml-cryptgps, ounit, ocaml-react
svn path=/nixpkgs/trunk/; revision=25041
2010-12-09 15:40:04 +00:00
|
|
|
|
2019-07-05 13:28:06 +01:00
|
|
|
buildInputs = [ ocaml dune findlib cppo ];
|
2017-07-13 21:46:03 +01:00
|
|
|
|
2017-10-19 22:09:20 +01:00
|
|
|
configurePhase = "ocaml configure.ml --share $out/share/camomile";
|
* Add ocaml packages findlib, camlzip, ocaml-ssl, ocaml-batteries, menhir, camomile, ocaml-lwt, cryptokit, ocaml-cryptgps, ounit, ocaml-react
svn path=/nixpkgs/trunk/; revision=25041
2010-12-09 15:40:04 +00:00
|
|
|
|
2019-07-05 13:28:06 +01:00
|
|
|
# Use jbuilder executable because it breaks on dune>=1.10
|
|
|
|
# https://github.com/yoriyuki/Camomile/commit/505202b58e22628f80bbe15ee76b9470a5bd2f57#r33816944
|
|
|
|
buildPhase = ''
|
|
|
|
jbuilder build -p ${pname}
|
|
|
|
'';
|
|
|
|
|
|
|
|
inherit (dune) installPhase;
|
|
|
|
|
2017-10-19 22:09:20 +01:00
|
|
|
meta = {
|
|
|
|
inherit (src.meta) homepage;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.vbgl ];
|
|
|
|
license = stdenv.lib.licenses.lgpl21;
|
|
|
|
description = "A Unicode library for OCaml";
|
|
|
|
};
|
* Add ocaml packages findlib, camlzip, ocaml-ssl, ocaml-batteries, menhir, camomile, ocaml-lwt, cryptokit, ocaml-cryptgps, ounit, ocaml-react
svn path=/nixpkgs/trunk/; revision=25041
2010-12-09 15:40:04 +00:00
|
|
|
}
|