2020-04-16 07:59:21 +01:00
|
|
|
{ lib, fetchFromGitHub, buildDunePackage, ocaml, alcotest, bigarray-compat }:
|
2018-07-22 07:11:39 +01:00
|
|
|
|
2018-11-05 10:21:46 +00:00
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "bigstringaf";
|
2019-10-11 07:02:25 +01:00
|
|
|
version = "0.6.0";
|
2018-11-05 10:21:46 +00:00
|
|
|
|
|
|
|
minimumOCamlVersion = "4.03";
|
2018-07-22 07:11:39 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "inhabitedtype";
|
2018-11-05 10:21:46 +00:00
|
|
|
repo = pname;
|
2018-07-22 07:11:39 +01:00
|
|
|
rev = version;
|
2019-10-11 07:02:25 +01:00
|
|
|
sha256 = "04b088vrqzmxsyan9f9nr8721bxip4b930cgvb5zkbbmrw3ylmwc";
|
2018-07-22 07:11:39 +01:00
|
|
|
};
|
|
|
|
|
2020-04-16 07:59:21 +01:00
|
|
|
checkInputs = [ alcotest ];
|
2019-10-11 07:02:25 +01:00
|
|
|
propagatedBuildInputs = [ bigarray-compat ];
|
2020-04-16 07:59:21 +01:00
|
|
|
doCheck = lib.versionAtLeast ocaml.version "4.05";
|
2018-07-22 07:11:39 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Bigstring intrinsics and fast blits based on memcpy/memmove";
|
2019-10-11 07:02:25 +01:00
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
maintainers = [ lib.maintainers.vbgl ];
|
2018-07-22 07:11:39 +01:00
|
|
|
inherit (src.meta) homepage;
|
|
|
|
};
|
|
|
|
}
|