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.

32 lines
841 B
Nix
Raw Normal View History

2023-03-17 05:07:44 +00:00
{ lib, fetchurl, buildDunePackage, alcotest
, uri, xmlm, omd, ezjsonm
}:
2017-02-18 21:58:29 +00:00
2020-04-14 09:39:02 +00:00
buildDunePackage rec {
2023-03-17 05:07:44 +00:00
duneVersion = "3";
minimalOCamlVersion = "4.08";
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 ];
checkInputs = [ alcotest ];
2023-03-17 05:07:44 +00:00
doCheck = true;
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 ];
};
}