Files
nixpkgs/pkgs/development/ocaml-modules/bigstringaf/default.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

48 lines
1.3 KiB
Nix

{
lib,
fetchFromGitHub,
buildDunePackage,
alcotest,
pkg-config,
dune-configurator,
}:
buildDunePackage rec {
pname = "bigstringaf";
version = "0.10.0";
minimalOCamlVersion = "4.08";
src = fetchFromGitHub {
owner = "inhabitedtype";
repo = pname;
tag = version;
hash = "sha256-p1hdB3ArOd2UX7S6YvXCFbYjEiXdMDmBaC/lFQgua7Q=";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [ dune-configurator ];
checkInputs = [ alcotest ];
doCheck = true;
meta = {
description = "Bigstring intrinsics and fast blits based on memcpy/memmove";
longDescription = ''
Bigstring intrinsics and fast blits based on memcpy/memmove
The OCaml compiler has a bunch of intrinsics for Bigstrings, but they're not
widely-known, sometimes misused, and so programs that use Bigstrings are slower
than they have to be. And even if a library got that part right and exposed the
intrinsics properly, the compiler doesn't have any fast blits between
Bigstrings and other string-like types.
So here they are. Go crazy.
'';
changelog = "https://github.com/inhabitedtype/bigstringaf/releases/tag/${version}";
license = lib.licenses.bsd3;
maintainers = [ lib.maintainers.vbgl ];
inherit (src.meta) homepage;
};
}