about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/ocaml-modules/saturn/lockfree.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/ocaml-modules/saturn/lockfree.nix')
-rw-r--r--nixpkgs/pkgs/development/ocaml-modules/saturn/lockfree.nix24
1 files changed, 24 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/ocaml-modules/saturn/lockfree.nix b/nixpkgs/pkgs/development/ocaml-modules/saturn/lockfree.nix
new file mode 100644
index 000000000000..42858626e58d
--- /dev/null
+++ b/nixpkgs/pkgs/development/ocaml-modules/saturn/lockfree.nix
@@ -0,0 +1,24 @@
+{ lib, fetchurl, buildDunePackage
+, domain_shims
+}:
+
+buildDunePackage rec {
+  pname = "saturn_lockfree";
+  version = "0.4.0";
+
+  minimalOCamlVersion = "4.12";
+
+  src = fetchurl {
+    url = "https://github.com/ocaml-multicore/saturn/releases/download/${version}/saturn-${version}.tbz";
+    hash = "sha256-fHvslaJwVbQaqDVA/MHGqHybetYbxRGlMrhgXqM3iPs=";
+  };
+
+  propagatedBuildInputs = [ domain_shims ];
+
+  meta = {
+    description = "Lock-free data structures for multicore OCaml";
+    homepage = "https://github.com/ocaml-multicore/lockfree";
+    license = lib.licenses.isc;
+    maintainers = [ lib.maintainers.vbgl ];
+  };
+}