-
-
Notifications
You must be signed in to change notification settings - Fork 12.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f1e7a60
commit a452714
Showing
2 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ stdenv, fetchFromGitHub, ocaml, findlib | ||
, ocamlbuild, topkg, opam | ||
, uri, xmlm, omd, ezjsonm }: | ||
|
||
stdenv.mkDerivation rec { | ||
version = "2.2.0"; | ||
name = "ocaml-cow-${version}"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "mirage"; | ||
repo = "ocaml-cow"; | ||
rev = "v${version}"; | ||
sha256 = "0snhabg7rfrrcq2ksr3qghiawd61cw3y4kp6rl7vs87j4cnk3kr2"; | ||
}; | ||
|
||
createFindlibDestdir = true; | ||
|
||
buildInputs = [ ocaml opam ocamlbuild findlib topkg ]; | ||
propagatedBuildInputs = [ xmlm uri ezjsonm omd ]; | ||
|
||
inherit (topkg) buildPhase installPhase; | ||
|
||
meta = with stdenv.lib; { | ||
description = "Caml on the Web"; | ||
longDescription = '' | ||
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. | ||
''; | ||
license = licenses.isc; | ||
maintainers = [ maintainers.sternenseemann ]; | ||
inherit (ocaml.meta) platforms; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters