nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 stdenv,
3 lib,
4 fetchurl,
5 fetchpatch,
6 ocaml,
7 findlib,
8 camlp4,
9}:
10
11stdenv.mkDerivation {
12 pname = "camomile";
13 version = "0.8.5";
14
15 src = fetchurl {
16 url = "https://github.com/yoriyuki/Camomile/releases/download/rel-0.8.5/camomile-0.8.5.tar.bz2";
17 sha256 = "003ikpvpaliy5hblhckfmln34zqz0mk3y2m1fqvbjngh3h2np045";
18 };
19
20 patches = [
21 (fetchpatch {
22 url = "https://raw.githubusercontent.com/ocaml/opam-repository/master/packages/camomile/camomile.0.8.5/files/4.05-typing-fix.patch";
23 sha256 = "167279lia6qx62mdcyc5rjsi4gf4yi52wn9mhgd9y1v3754z7fwb";
24 })
25 ];
26
27 nativeBuildInputs = [
28 ocaml
29 findlib
30 camlp4
31 ];
32
33 strictDeps = true;
34
35 createFindlibDestdir = true;
36
37 meta = {
38 homepage = "https://github.com/yoriyuki/Camomile/tree/master/Camomile";
39 description = "Comprehensive Unicode library for OCaml";
40 license = lib.licenses.lgpl21;
41 inherit (ocaml.meta) platforms;
42 };
43}