about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/ocaml-modules/bigstringaf/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/ocaml-modules/bigstringaf/default.nix')
-rw-r--r--nixpkgs/pkgs/development/ocaml-modules/bigstringaf/default.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/ocaml-modules/bigstringaf/default.nix b/nixpkgs/pkgs/development/ocaml-modules/bigstringaf/default.nix
new file mode 100644
index 000000000000..1e5d2baed0c9
--- /dev/null
+++ b/nixpkgs/pkgs/development/ocaml-modules/bigstringaf/default.nix
@@ -0,0 +1,27 @@
+{ lib, fetchFromGitHub, buildDunePackage, ocaml, alcotest, bigarray-compat, pkg-config }:
+
+buildDunePackage rec {
+  pname = "bigstringaf";
+  version = "0.9.0";
+
+  minimalOCamlVersion = "4.08";
+  duneVersion = "3";
+
+  src = fetchFromGitHub {
+    owner = "inhabitedtype";
+    repo = pname;
+    rev = version;
+    hash = "sha256-HXPjnE56auy2MI6HV2XuBX/VeqsO50HFzTul17lKEqE=";
+  };
+
+  nativeBuildInputs = [ pkg-config ];
+  checkInputs = [ alcotest ];
+  doCheck = true;
+
+  meta = {
+    description = "Bigstring intrinsics and fast blits based on memcpy/memmove";
+    license = lib.licenses.bsd3;
+    maintainers = [ lib.maintainers.vbgl ];
+    inherit (src.meta) homepage;
+  };
+}