summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/posix
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2020-08-24 07:47:48 +0200
committerVincent Laporte <vbgl@users.noreply.github.com>2020-08-31 07:07:08 +0200
commitb1f2a30191f489fb8afc881f861e3511b7f04f0b (patch)
tree32b1557f3677bcb0f44accf403915420a355c392 /pkgs/development/ocaml-modules/posix
parent8ef6f4bd567306518724d025560f66e20b71d69a (diff)
ocamlPackages.posix-base: init at 2.0.0
Diffstat (limited to 'pkgs/development/ocaml-modules/posix')
-rw-r--r--pkgs/development/ocaml-modules/posix/base.nix26
1 files changed, 26 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/posix/base.nix b/pkgs/development/ocaml-modules/posix/base.nix
new file mode 100644
index 0000000000000..a6fe690ebcc77
--- /dev/null
+++ b/pkgs/development/ocaml-modules/posix/base.nix
@@ -0,0 +1,26 @@
+{ lib, buildDunePackage, fetchFromGitHub
+, ctypes, integers
+}:
+
+buildDunePackage rec {
+  pname = "posix-base";
+  version = "2.0.0";
+
+  src = fetchFromGitHub {
+    owner = "savonet";
+    repo = "ocaml-posix";
+    rev = "v${version}";
+    sha256 = "18px8hfqcfy2lk8105ki3hrxxigs44gs046ba0fqda6wzd0hr82b";
+  };
+
+  useDune2 = true;
+
+  propagatedBuildInputs = [ ctypes integers ];
+
+  meta = {
+    homepage = "https://www.liquidsoap.info/ocaml-posix/";
+    description = "Base module for the posix bindings";
+    license = lib.licenses.mit;
+    maintainers = [ lib.maintainers.vbgl ];
+  };
+}