3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/ocaml-modules/cow/default.nix

31 lines
841 B
Nix
Raw Normal View History

2020-04-14 10:39:02 +01:00
{ lib, fetchurl, buildDunePackage, alcotest
2017-02-18 21:58:29 +00:00
, uri, xmlm, omd, ezjsonm }:
2020-04-14 10:39:02 +01:00
buildDunePackage rec {
2020-10-21 06:19:58 +01:00
useDune2 = true;
2020-04-14 10:39:02 +01:00
minimumOCamlVersion = "4.02.3";
2017-02-18 21:58:29 +00:00
2020-04-14 10:39:02 +01:00
version = "2.4.0";
pname = "cow";
src = fetchurl {
url = "https://github.com/mirage/ocaml-cow/releases/download/v${version}/cow-v${version}.tbz";
sha256 = "1x77lwpskda4zyikwxh500xjn90pgdwz6jm7ca7f36pyav4vl6zx";
2017-02-18 21:58:29 +00:00
};
propagatedBuildInputs = [ xmlm uri ezjsonm omd ];
2020-04-14 10:39:02 +01:00
checkInputs = [ alcotest ];
doCheck = true;
2017-02-18 21:58:29 +00:00
2020-04-14 10:39:02 +01:00
meta = with lib; {
2017-02-18 21:58:29 +00:00
description = "Caml on the Web";
longDescription = ''
2020-04-14 10:39:02 +01:00
Writing web-applications requires a lot of skills: HTML, XML, JSON and
Markdown, to name but a few! This library provides OCaml combinators
for these web formats.
2017-02-18 21:58:29 +00:00
'';
license = licenses.isc;
maintainers = [ maintainers.sternenseemann ];
};
}