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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
889 B
Nix
Raw Normal View History

2022-08-23 06:04:50 +00:00
{ lib, fetchurl, buildDunePackage, ocaml, alcotest
2017-02-18 21:58:29 +00:00
, uri, xmlm, omd, ezjsonm }:
2020-04-14 09:39:02 +00:00
buildDunePackage rec {
2020-10-21 05:19:58 +00:00
useDune2 = true;
2020-04-14 09:39:02 +00:00
minimumOCamlVersion = "4.02.3";
2017-02-18 21:58:29 +00:00
2020-04-14 09:39:02 +00: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 ];
nativeCheckInputs = [ alcotest ];
2022-08-23 06:04:50 +00:00
doCheck = lib.versionAtLeast ocaml.version "4.08";
2017-02-18 21:58:29 +00:00
2020-04-14 09:39:02 +00:00
meta = with lib; {
2017-02-18 21:58:29 +00:00
description = "Caml on the Web";
longDescription = ''
2020-04-14 09:39:02 +00: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 ];
};
}