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