nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, buildDunePackage, fetchFromGitHub, m4, core_kernel, ounit }:
2
3buildDunePackage rec {
4 pname = "cfstream";
5 version = "1.3.1";
6
7 useDune2 = true;
8
9 minimumOCamlVersion = "4.04.1";
10
11 src = fetchFromGitHub {
12 owner = "biocaml";
13 repo = pname;
14 rev = version;
15 sha256 = "0qnxfp6y294gjsccx7ksvwn9x5q20hi8sg24rjypzsdkmlphgdnd";
16 };
17
18 patches = [ ./git_commit.patch ];
19
20 buildInputs = [ m4 ];
21 checkInputs = [ ounit ];
22 propagatedBuildInputs = [ core_kernel ];
23
24 doCheck = true;
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}