summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/mmap
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2019-08-09 07:34:04 +0200
committerVincent Laporte <vbgl@users.noreply.github.com>2019-08-16 06:28:28 +0000
commitaf504e45b384318c039fd39a1d3aa8b07cebfcd3 (patch)
tree849fb1354b9a89c550142f99b0103abe53d5a5f1 /pkgs/development/ocaml-modules/mmap
parent6c15ffe487b2abe7af93929d4979d0eccadc2eb2 (diff)
downloadnixpkgs-af504e45b384318c039fd39a1d3aa8b07cebfcd3.tar
nixpkgs-af504e45b384318c039fd39a1d3aa8b07cebfcd3.tar.gz
nixpkgs-af504e45b384318c039fd39a1d3aa8b07cebfcd3.tar.bz2
nixpkgs-af504e45b384318c039fd39a1d3aa8b07cebfcd3.tar.lz
nixpkgs-af504e45b384318c039fd39a1d3aa8b07cebfcd3.tar.xz
nixpkgs-af504e45b384318c039fd39a1d3aa8b07cebfcd3.tar.zst
nixpkgs-af504e45b384318c039fd39a1d3aa8b07cebfcd3.zip
ocamlPackages.mmap: init at 1.1.0
This project provides a Mmap.map_file function for mapping files in memory.
Diffstat (limited to 'pkgs/development/ocaml-modules/mmap')
-rw-r--r--pkgs/development/ocaml-modules/mmap/default.nix18
1 files changed, 18 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/mmap/default.nix b/pkgs/development/ocaml-modules/mmap/default.nix
new file mode 100644
index 00000000000..8ae1f4a9d47
--- /dev/null
+++ b/pkgs/development/ocaml-modules/mmap/default.nix
@@ -0,0 +1,18 @@
+{ lib, buildDunePackage, fetchurl }:
+
+buildDunePackage rec {
+  pname = "mmap";
+  version = "1.1.0";
+
+  src = fetchurl {
+    url = "https://github.com/mirage/mmap/releases/download/v${version}/mmap-v${version}.tbz";
+    sha256 = "0l6waidal2n8mkdn74avbslvc10sf49f5d889n838z03pra5chsc";
+  };
+
+  meta = {
+    homepage = "https://github.com/mirage/mmap";
+    description = "Function for mapping files in memory";
+    license = lib.licenses.lgpl21;
+    maintainers = [ lib.maintainers.vbgl ];
+  };
+}