Skip to content

Commit 9a43f6b

Browse files
momeemtvbgl
authored andcommitted
ocamlPackages.bigstringaf: modernize the derivation and add changelog and longDescription
1 parent a21c18a commit 9a43f6b

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

pkgs/development/ocaml-modules/bigstringaf/default.nix

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ buildDunePackage rec {
1616
src = fetchFromGitHub {
1717
owner = "inhabitedtype";
1818
repo = pname;
19-
rev = version;
19+
tag = version;
2020
hash = "sha256-p1hdB3ArOd2UX7S6YvXCFbYjEiXdMDmBaC/lFQgua7Q=";
2121
};
2222

@@ -28,6 +28,18 @@ buildDunePackage rec {
2828

2929
meta = {
3030
description = "Bigstring intrinsics and fast blits based on memcpy/memmove";
31+
longDescription = ''
32+
Bigstring intrinsics and fast blits based on memcpy/memmove
33+
34+
The OCaml compiler has a bunch of intrinsics for Bigstrings, but they're not
35+
widely-known, sometimes misused, and so programs that use Bigstrings are slower
36+
than they have to be. And even if a library got that part right and exposed the
37+
intrinsics properly, the compiler doesn't have any fast blits between
38+
Bigstrings and other string-like types.
39+
40+
So here they are. Go crazy.
41+
'';
42+
changelog = "https://github.com/inhabitedtype/bigstringaf/releases/tag/${version}";
3143
license = lib.licenses.bsd3;
3244
maintainers = [ lib.maintainers.vbgl ];
3345
inherit (src.meta) homepage;

0 commit comments

Comments
 (0)