tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
ocamlPackages.camomile: 0.8.5 -> 0.8.6
Vincent Laporte
8 years ago
68ed8f68
5da5af56
+53
-23
3 changed files
expand all
collapse all
unified
split
pkgs
development
ocaml-modules
camomile
0.8.5.nix
default.nix
top-level
ocaml-packages.nix
+30
pkgs/development/ocaml-modules/camomile/0.8.5.nix
···
1
1
+
{stdenv, fetchurl, fetchpatch, ocaml, findlib, camlp4}:
2
2
+
3
3
+
stdenv.mkDerivation rec {
4
4
+
name = "camomile-${version}";
5
5
+
version = "0.8.5";
6
6
+
7
7
+
src = fetchurl {
8
8
+
url = https://github.com/yoriyuki/Camomile/releases/download/rel-0.8.5/camomile-0.8.5.tar.bz2;
9
9
+
sha256 = "003ikpvpaliy5hblhckfmln34zqz0mk3y2m1fqvbjngh3h2np045";
10
10
+
};
11
11
+
12
12
+
patches = [ (fetchpatch {
13
13
+
url = https://raw.githubusercontent.com/ocaml/opam-repository/master/packages/camomile/camomile.0.8.5/files/4.05-typing-fix.patch;
14
14
+
sha256 = "167279lia6qx62mdcyc5rjsi4gf4yi52wn9mhgd9y1v3754z7fwb";
15
15
+
})];
16
16
+
17
17
+
buildInputs = [ocaml findlib camlp4];
18
18
+
19
19
+
createFindlibDestdir = true;
20
20
+
21
21
+
meta = {
22
22
+
homepage = https://github.com/yoriyuki/Camomile/tree/master/Camomile;
23
23
+
description = "A comprehensive Unicode library for OCaml";
24
24
+
license = stdenv.lib.licenses.lgpl21;
25
25
+
platforms = ocaml.meta.platforms or [];
26
26
+
maintainers = [
27
27
+
stdenv.lib.maintainers.z77z
28
28
+
];
29
29
+
};
30
30
+
}
+19
-22
pkgs/development/ocaml-modules/camomile/default.nix
···
1
1
-
{stdenv, fetchurl, fetchpatch, ocaml, findlib, camlp4}:
1
1
+
{ stdenv, fetchFromGitHub, ocaml, findlib, jbuilder, cppo }:
2
2
3
3
stdenv.mkDerivation rec {
4
4
-
name = "camomile-${version}";
5
5
-
version = "0.8.5";
4
4
+
version = "0.8.6";
5
5
+
name = "ocaml${ocaml.version}-camomile-${version}";
6
6
7
7
-
src = fetchurl {
8
8
-
url = https://github.com/yoriyuki/Camomile/releases/download/rel-0.8.5/camomile-0.8.5.tar.bz2;
9
9
-
sha256 = "003ikpvpaliy5hblhckfmln34zqz0mk3y2m1fqvbjngh3h2np045";
10
10
-
};
7
7
+
src = fetchFromGitHub {
8
8
+
owner = "yoriyuki";
9
9
+
repo = "camomile";
10
10
+
rev = "rel-${version}";
11
11
+
sha256 = "1jq1xhaikczk6lbvas7c35aa04q0kjaqd8m54c4jivpj80yvg4x9";
12
12
+
};
11
13
12
12
-
patches = [ (fetchpatch {
13
13
-
url = https://raw.githubusercontent.com/ocaml/opam-repository/master/packages/camomile/camomile.0.8.5/files/4.05-typing-fix.patch;
14
14
-
sha256 = "167279lia6qx62mdcyc5rjsi4gf4yi52wn9mhgd9y1v3754z7fwb";
15
15
-
})];
14
14
+
buildInputs = [ ocaml findlib jbuilder cppo ];
16
15
17
17
-
buildInputs = [ocaml findlib camlp4];
16
16
+
configurePhase = "ocaml configure.ml --share $out/share/camomile";
18
17
19
19
-
createFindlibDestdir = true;
18
18
+
inherit (jbuilder) installPhase;
20
19
21
21
-
meta = {
22
22
-
homepage = https://github.com/yoriyuki/Camomile/tree/master/Camomile;
23
23
-
description = "A comprehensive Unicode library for OCaml";
24
24
-
license = stdenv.lib.licenses.lgpl21;
25
25
-
platforms = ocaml.meta.platforms or [];
26
26
-
maintainers = [
27
27
-
stdenv.lib.maintainers.z77z
28
28
-
];
29
29
-
};
20
20
+
meta = {
21
21
+
inherit (ocaml.meta) platforms;
22
22
+
inherit (src.meta) homepage;
23
23
+
maintainers = [ stdenv.lib.maintainers.vbgl ];
24
24
+
license = stdenv.lib.licenses.lgpl21;
25
25
+
description = "A Unicode library for OCaml";
26
26
+
};
30
27
}
+4
-1
pkgs/top-level/ocaml-packages.nix
···
98
98
camlzip = callPackage ../development/ocaml-modules/camlzip { };
99
99
100
100
camomile_0_8_2 = callPackage ../development/ocaml-modules/camomile/0.8.2.nix { };
101
101
-
camomile = callPackage ../development/ocaml-modules/camomile { };
101
101
+
camomile =
102
102
+
if lib.versionOlder "4.03" ocaml.version
103
103
+
then callPackage ../development/ocaml-modules/camomile { }
104
104
+
else callPackage ../development/ocaml-modules/camomile/0.8.5.nix { };
102
105
103
106
camlimages_4_0 =
104
107
if lib.versionOlder "4.02" ocaml.version