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

30 lines
822 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 {
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 ];
};
}