2020-12-07 07:45:13 +00:00
|
|
|
{ lib, fetchFromGitHub, buildDunePackage, ocaml, markup, ounit2 }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "lambdasoup";
|
2021-10-28 06:52:43 +00:00
|
|
|
version = "0.7.3";
|
2020-12-07 07:45:13 +00:00
|
|
|
|
2021-10-28 06:52:43 +00:00
|
|
|
minimalOCamlVersion = "4.02";
|
2020-12-07 07:45:13 +00:00
|
|
|
|
|
|
|
useDune2 = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "aantron";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-10-28 06:52:43 +00:00
|
|
|
sha256 = "sha256:1wclkn1pl0d150dw0xswb29jc7y1q9mhipff1pnsc1hli3pyvvb7";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ markup ];
|
|
|
|
|
2020-12-07 07:45:13 +00:00
|
|
|
doCheck = lib.versionAtLeast ocaml.version "4.04";
|
|
|
|
checkInputs = [ ounit2 ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = {
|
|
|
|
description = "Functional HTML scraping and rewriting with CSS in OCaml";
|
|
|
|
homepage = "https://aantron.github.io/lambdasoup/";
|
2020-07-18 16:06:22 +00:00
|
|
|
license = lib.licenses.mit;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = [ lib.maintainers.vbgl ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|