mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 13:43:22 +00:00
a13cdfe520
To keep this for the future we also strictDeps where possible, including for janePackages, topkg, oasis and ocamlbuild. This makes some closures significantly smaller and makes cross compilation easier
33 lines
817 B
Nix
33 lines
817 B
Nix
{ lib, fetchFromGitHub, buildDunePackage, ocaml, alcotest, bigarray-compat, pkg-config }:
|
|
|
|
buildDunePackage rec {
|
|
pname = "bigstringaf";
|
|
version = "0.7.0";
|
|
|
|
useDune2 = true;
|
|
|
|
minimumOCamlVersion = "4.03";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "inhabitedtype";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "1q1sqxzdnlrpl95ccrhl7lwy3zswgd9rbn19ildclh0lyi2vazbj";
|
|
};
|
|
|
|
# This currently fails with dune
|
|
strictDeps = false;
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
checkInputs = [ alcotest ];
|
|
propagatedBuildInputs = [ bigarray-compat ];
|
|
doCheck = lib.versionAtLeast ocaml.version "4.05";
|
|
|
|
meta = {
|
|
description = "Bigstring intrinsics and fast blits based on memcpy/memmove";
|
|
license = lib.licenses.bsd3;
|
|
maintainers = [ lib.maintainers.vbgl ];
|
|
inherit (src.meta) homepage;
|
|
};
|
|
}
|