Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, buildDunePackage, ocaml, fetchurl
2, bigarray-compat, alcotest, astring, fpath, bos, findlib, pkg-config
3}:
4
5buildDunePackage rec {
6 pname = "bigarray-overlap";
7 version = "0.2.0";
8
9 src = fetchurl {
10 url = "https://github.com/dinosaure/overlap/releases/download/v${version}/bigarray-overlap-v${version}.tbz";
11 sha256 = "1v86avafsbyxjccy0y9gny31s2jzb0kd42v3mhcalklx5f044lcy";
12 };
13
14 minimumOCamlVersion = "4.07";
15 useDune2 = true;
16
17 strictDeps = !doCheck;
18
19 propagatedBuildInputs = [ bigarray-compat ];
20
21 nativeBuildInputs = [ findlib pkg-config ];
22 checkInputs = [ alcotest astring fpath bos ];
23 doCheck = lib.versionAtLeast ocaml.version "4.08";
24
25 meta = with lib; {
26 homepage = "https://github.com/dinosaure/overlap";
27 description = "A minimal library to know that 2 bigarray share physically the same memory or not";
28 license = licenses.mit;
29 maintainers = [ maintainers.sternenseemann ];
30 };
31}