Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, fetchurl, buildDunePackage, alcotest
2, uri, xmlm, omd, ezjsonm
3}:
4
5buildDunePackage rec {
6 duneVersion = "3";
7 minimalOCamlVersion = "4.08";
8
9 version = "2.4.0";
10 pname = "cow";
11
12 src = fetchurl {
13 url = "https://github.com/mirage/ocaml-cow/releases/download/v${version}/cow-v${version}.tbz";
14 sha256 = "1x77lwpskda4zyikwxh500xjn90pgdwz6jm7ca7f36pyav4vl6zx";
15 };
16
17 propagatedBuildInputs = [ xmlm uri ezjsonm omd ];
18 checkInputs = [ alcotest ];
19 doCheck = true;
20
21 meta = with lib; {
22 description = "Caml on the Web";
23 longDescription = ''
24 Writing web-applications requires a lot of skills: HTML, XML, JSON and
25 Markdown, to name but a few! This library provides OCaml combinators
26 for these web formats.
27 '';
28 license = licenses.isc;
29 maintainers = [ maintainers.sternenseemann ];
30 };
31}