2020-12-06 16:17:18 +00:00
|
|
|
{ lib, fetchFromGitHub, buildDunePackage, ocaml, markup, ounit2 }:
|
2019-07-25 18:01:07 +01:00
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "lambdasoup";
|
2020-12-06 16:17:18 +00:00
|
|
|
version = "0.7.2";
|
|
|
|
|
|
|
|
minimumOCamlVersion = "4.02";
|
2019-07-25 18:01:07 +01:00
|
|
|
|
2020-12-06 16:09:39 +00:00
|
|
|
useDune2 = true;
|
|
|
|
|
2019-07-25 18:01:07 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "aantron";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2020-12-06 16:17:18 +00:00
|
|
|
sha256 = "0php51lyz3ll0psazjd59yw02xb9w84150gkyiwmn3fa0iq8nf7m";
|
2019-07-25 18:01:07 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ markup ];
|
|
|
|
|
2020-12-06 16:17:18 +00:00
|
|
|
doCheck = lib.versionAtLeast ocaml.version "4.04";
|
|
|
|
checkInputs = [ ounit2 ];
|
|
|
|
|
2019-07-25 18:01:07 +01:00
|
|
|
meta = {
|
|
|
|
description = "Functional HTML scraping and rewriting with CSS in OCaml";
|
|
|
|
homepage = "https://aantron.github.io/lambdasoup/";
|
2020-07-11 14:23:47 +01:00
|
|
|
license = lib.licenses.mit;
|
2019-07-25 18:01:07 +01:00
|
|
|
maintainers = [ lib.maintainers.vbgl ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|