Skip to content

Commit a452714

Browse files
sternenseemannvbgl
authored andcommittedFeb 19, 2017
ocaml-cow: init at 2.2.0
1 parent f1e7a60 commit a452714

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{ stdenv, fetchFromGitHub, ocaml, findlib
2+
, ocamlbuild, topkg, opam
3+
, uri, xmlm, omd, ezjsonm }:
4+
5+
stdenv.mkDerivation rec {
6+
version = "2.2.0";
7+
name = "ocaml-cow-${version}";
8+
9+
src = fetchFromGitHub {
10+
owner = "mirage";
11+
repo = "ocaml-cow";
12+
rev = "v${version}";
13+
sha256 = "0snhabg7rfrrcq2ksr3qghiawd61cw3y4kp6rl7vs87j4cnk3kr2";
14+
};
15+
16+
createFindlibDestdir = true;
17+
18+
buildInputs = [ ocaml opam ocamlbuild findlib topkg ];
19+
propagatedBuildInputs = [ xmlm uri ezjsonm omd ];
20+
21+
inherit (topkg) buildPhase installPhase;
22+
23+
meta = with stdenv.lib; {
24+
description = "Caml on the Web";
25+
longDescription = ''
26+
Caml on the Web (COW) is a set of parsers and syntax extensions to let you manipulate HTML, CSS, XML, JSON and Markdown directly from OCaml code.
27+
'';
28+
license = licenses.isc;
29+
maintainers = [ maintainers.sternenseemann ];
30+
inherit (ocaml.meta) platforms;
31+
};
32+
}

‎pkgs/top-level/ocaml-packages.nix

+2
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,8 @@ let
132132

133133
containers = callPackage ../development/ocaml-modules/containers { };
134134

135+
cow = callPackage ../development/ocaml-modules/cow { };
136+
135137
cpdf = callPackage ../development/ocaml-modules/cpdf { };
136138

137139
cppo = callPackage ../development/tools/ocaml/cppo { };

0 commit comments

Comments
 (0)
Please sign in to comment.