Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, buildDunePackage, fetchFromGitHub, ocaml, m4, camlp-streams, core_kernel, ounit }:
2
3buildDunePackage rec {
4 pname = "cfstream";
5 version = "1.3.2";
6
7 minimalOCamlVersion = "4.04.1";
8
9 src = fetchFromGitHub {
10 owner = "biocaml";
11 repo = pname;
12 rev = version;
13 hash = "sha256-iSg0QsTcU0MT/Cletl+hW6bKyH0jkp7Jixqu8H59UmQ=";
14 };
15
16 patches = [ ./git_commit.patch ];
17
18 strictDeps = true;
19
20 nativeBuildInputs = [ m4 ];
21 checkInputs = [ ounit ];
22 propagatedBuildInputs = [ camlp-streams core_kernel ];
23
24 doCheck = lib.versionAtLeast ocaml.version "4.08";
25
26 meta = with lib; {
27 inherit (src.meta) homepage;
28 description = "Simple Core-inspired wrapper for standard library Stream module";
29 maintainers = [ maintainers.bcdarwin ];
30 license = licenses.lgpl21;
31 };
32}