diff --git a/pkgs/development/ocaml-modules/bstr/default.nix b/pkgs/development/ocaml-modules/bstr/default.nix new file mode 100644 index 000000000000..37e342db4400 --- /dev/null +++ b/pkgs/development/ocaml-modules/bstr/default.nix @@ -0,0 +1,24 @@ +{ + fetchurl, + buildDunePackage, + lib, +}: + +buildDunePackage rec { + pname = "bstr"; + version = "0.0.2"; + + minimalOCamlVersion = "4.13"; + + src = fetchurl { + url = "https://github.com/robur-coop/bstr/releases/download/v${version}/bstr-${version}.tbz"; + hash = "sha256-/zvzCBzT014OesTmxGBDB98ZRU++YNDLUZ8uaDK3keM="; + }; + + meta = { + description = "A simple library for bigstrings"; + homepage = "https://git.robur.coop/robur/bstr"; + license = lib.licenses.mit; + maintainers = [ lib.maintainers.vbgl ]; + }; +} diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index f025e1cfd9f6..2be1c4535a94 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -145,6 +145,8 @@ let brr = callPackage ../development/ocaml-modules/brr { }; + bstr = callPackage ../development/ocaml-modules/bstr { }; + bwd = callPackage ../development/ocaml-modules/bwd { }; bytesrw = callPackage ../development/ocaml-modules/bytesrw { };