depot/pkgs/development/ocaml-modules/cow/default.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

31 lines
841 B
Nix

{ lib, fetchurl, buildDunePackage, alcotest
, uri, xmlm, omd, ezjsonm
}:
buildDunePackage rec {
duneVersion = "3";
minimalOCamlVersion = "4.08";
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";
};
propagatedBuildInputs = [ xmlm uri ezjsonm omd ];
checkInputs = [ alcotest ];
doCheck = true;
meta = with lib; {
description = "Caml on the Web";
longDescription = ''
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.
'';
license = licenses.isc;
maintainers = [ maintainers.sternenseemann ];
};
}