Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, fetchFromGitHub, buildDunePackage, ocaml, camlp-streams, markup, ounit2 }:
2
3buildDunePackage rec {
4 pname = "lambdasoup";
5 version = "1.0.0";
6
7 minimalOCamlVersion = "4.03";
8
9 src = fetchFromGitHub {
10 owner = "aantron";
11 repo = pname;
12 rev = version;
13 hash = "sha256-PZkhN5vkkLu8A3gYrh5O+nq9wFtig0Q4qD8zLGUGTRI=";
14 };
15
16 propagatedBuildInputs = [ camlp-streams markup ];
17
18 doCheck = lib.versionAtLeast ocaml.version "4.08";
19 checkInputs = [ ounit2 ];
20
21 meta = {
22 description = "Functional HTML scraping and rewriting with CSS in OCaml";
23 homepage = "https://aantron.github.io/lambdasoup/";
24 license = lib.licenses.mit;
25 maintainers = [ lib.maintainers.vbgl ];
26 };
27
28}