diff options
author | toastal <toastal@posteo.net> | 2023-04-14 12:22:41 +0700 |
---|---|---|
committer | Vincent Laporte <vbgl@users.noreply.github.com> | 2023-04-17 19:39:33 +0200 |
commit | 0a4206a51b386e5cda731e8ac78d76ad924c7125 (patch) | |
tree | e4e9cf0fc1d1c4cf64aabdacece87eb738211f51 /pkgs/development | |
parent | 10d74285cd3bdbc1f93c8efc8ebe3a153d58f745 (diff) | |
download | nixpkgs-0a4206a51b386e5cda731e8ac78d76ad924c7125.tar nixpkgs-0a4206a51b386e5cda731e8ac78d76ad924c7125.tar.gz nixpkgs-0a4206a51b386e5cda731e8ac78d76ad924c7125.tar.bz2 nixpkgs-0a4206a51b386e5cda731e8ac78d76ad924c7125.tar.lz nixpkgs-0a4206a51b386e5cda731e8ac78d76ad924c7125.tar.xz nixpkgs-0a4206a51b386e5cda731e8ac78d76ad924c7125.tar.zst nixpkgs-0a4206a51b386e5cda731e8ac78d76ad924c7125.zip |
ocamlPackages.uring: init at 0.5
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/ocaml-modules/uring/default.nix | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/uring/default.nix b/pkgs/development/ocaml-modules/uring/default.nix new file mode 100644 index 00000000000..b6cc3e4c994 --- /dev/null +++ b/pkgs/development/ocaml-modules/uring/default.nix @@ -0,0 +1,53 @@ +{ lib +, buildDunePackage +, cstruct +, dune-configurator +, fetchurl +, fmt +, optint +, mdx +}: + +buildDunePackage rec { + pname = "uring"; + version = "0.5"; + + minimalOCamlVersion = "4.12"; + duneVersion = "3"; + + src = fetchurl { + url = "https://github.com/ocaml-multicore/ocaml-uring/releases/download/v${version}/${pname}-${version}.tbz"; + sha256 = "106w7mabqihdhj4csk9jfqag220rwhqdp5lapn0xmw2035scvxvk"; + }; + + propagatedBuildInputs = [ + cstruct + fmt + optint + ]; + + buildInputs = [ + dune-configurator + ]; + + checkInputs = [ + mdx + ]; + + nativeCheckInputs = [ + mdx.bin + ]; + + doCheck = true; + + dontStrip = true; + + meta = { + homepage = "https://github.com/ocaml-multicore/ocaml-${pname}"; + changelog = "https://github.com/ocaml-multicore/ocaml-${pname}/raw/v${version}/CHANGES.md"; + description = "Bindings to io_uring for OCaml"; + license = with lib.licenses; [ isc mit ]; + platforms = lib.platforms.linux; + maintainers = with lib.maintainers; [ toastal ]; + }; +} |