nixpkgs-suyu/pkgs/development/ocaml-modules/cow/default.nix

31 lines
841 B
Nix
Raw Normal View History

2020-04-14 11:39:02 +02:00
{ lib, fetchurl, buildDunePackage, alcotest
2017-02-18 22:58:29 +01:00
, uri, xmlm, omd, ezjsonm }:
2020-04-14 11:39:02 +02:00
buildDunePackage rec {
2020-10-21 07:19:58 +02:00
useDune2 = true;
2020-04-14 11:39:02 +02:00
minimumOCamlVersion = "4.02.3";
2017-02-18 22:58:29 +01:00
2020-04-14 11:39:02 +02: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 22:58:29 +01:00
};
propagatedBuildInputs = [ xmlm uri ezjsonm omd ];
2020-04-14 11:39:02 +02:00
checkInputs = [ alcotest ];
doCheck = true;
2017-02-18 22:58:29 +01:00
2020-04-14 11:39:02 +02:00
meta = with lib; {
2017-02-18 22:58:29 +01:00
description = "Caml on the Web";
longDescription = ''
2020-04-14 11:39:02 +02: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 22:58:29 +01:00
'';
license = licenses.isc;
maintainers = [ maintainers.sternenseemann ];
};
}