diff options
Diffstat (limited to 'nixpkgs/pkgs/development/ocaml-modules/domain-local-await/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/ocaml-modules/domain-local-await/default.nix | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/ocaml-modules/domain-local-await/default.nix b/nixpkgs/pkgs/development/ocaml-modules/domain-local-await/default.nix new file mode 100644 index 000000000000..9b90e87aa517 --- /dev/null +++ b/nixpkgs/pkgs/development/ocaml-modules/domain-local-await/default.nix @@ -0,0 +1,44 @@ +{ lib +, buildDunePackage +, fetchurl +, alcotest +, domain_shims +, mdx +, thread-table +}: + +buildDunePackage rec { + pname = "domain-local-await"; + version = "1.0.1"; + + minimalOCamlVersion = "5.0"; + + src = fetchurl { + url = "https://github.com/ocaml-multicore/${pname}/releases/download/${version}/${pname}-${version}.tbz"; + hash = "sha256-KVIRPFPLB+KwVLLchs5yk5Ex2rggfI8xOa2yPmTN+m8="; + }; + + propagatedBuildInputs = [ + thread-table + ]; + + doCheck = true; + + checkInputs = [ + alcotest + domain_shims + mdx + ]; + + nativeCheckInputs = [ + mdx.bin + ]; + + meta = { + homepage = "https://github.com/ocaml-multicore/ocaml-${pname}"; + changelog = "https://github.com/ocaml-multicore/ocaml-${pname}/raw/v${version}/CHANGES.md"; + description = "Scheduler independent blocking mechanism"; + license = with lib.licenses; [ isc ]; + maintainers = with lib.maintainers; [ toastal ]; + }; +} |