mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 22:32:58 +03:00
ocamlPackages.cow: 2.2.0 -> 2.4.0
This commit is contained in:
parent
93a9ac696b
commit
79e6d13a4a
@ -1,30 +1,29 @@
|
|||||||
{ stdenv, fetchFromGitHub, ocaml, findlib
|
{ lib, fetchurl, buildDunePackage, alcotest
|
||||||
, ocamlbuild, topkg
|
|
||||||
, uri, xmlm, omd, ezjsonm }:
|
, uri, xmlm, omd, ezjsonm }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
buildDunePackage rec {
|
||||||
version = "2.2.0";
|
minimumOCamlVersion = "4.02.3";
|
||||||
pname = "ocaml-cow";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
version = "2.4.0";
|
||||||
owner = "mirage";
|
pname = "cow";
|
||||||
repo = "ocaml-cow";
|
|
||||||
rev = "v${version}";
|
src = fetchurl {
|
||||||
sha256 = "0snhabg7rfrrcq2ksr3qghiawd61cw3y4kp6rl7vs87j4cnk3kr2";
|
url = "https://github.com/mirage/ocaml-cow/releases/download/v${version}/cow-v${version}.tbz";
|
||||||
|
sha256 = "1x77lwpskda4zyikwxh500xjn90pgdwz6jm7ca7f36pyav4vl6zx";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ ocaml ocamlbuild findlib topkg ];
|
|
||||||
propagatedBuildInputs = [ xmlm uri ezjsonm omd ];
|
propagatedBuildInputs = [ xmlm uri ezjsonm omd ];
|
||||||
|
checkInputs = [ alcotest ];
|
||||||
|
doCheck = true;
|
||||||
|
|
||||||
inherit (topkg) buildPhase installPhase;
|
meta = with lib; {
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
|
||||||
description = "Caml on the Web";
|
description = "Caml on the Web";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
Caml on the Web (COW) is a set of parsers and syntax extensions to let you manipulate HTML, CSS, XML, JSON and Markdown directly from OCaml code.
|
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;
|
license = licenses.isc;
|
||||||
maintainers = [ maintainers.sternenseemann ];
|
maintainers = [ maintainers.sternenseemann ];
|
||||||
inherit (ocaml.meta) platforms;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user