aboutsummaryrefslogtreecommitdiff
path: root/pkgs/development/ocaml-modules/mirage-block
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2020-10-27 08:25:17 +0100
committerehmry <ehmry@posteo.net>2020-10-27 22:00:51 +0100
commit47183f25a0805ef83d8bd3bfe9d9700cebf59ed6 (patch)
treea24fc49e225d546da27abdc40ae5b90a6e437d41 /pkgs/development/ocaml-modules/mirage-block
parente129f4152222823bdfbae405e68f098b097c256e (diff)
ocamlPackages.mirage-block: init at 2.0.1
Diffstat (limited to 'pkgs/development/ocaml-modules/mirage-block')
-rw-r--r--pkgs/development/ocaml-modules/mirage-block/default.nix24
1 files changed, 24 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/mirage-block/default.nix b/pkgs/development/ocaml-modules/mirage-block/default.nix
new file mode 100644
index 000000000000..fc9a6b6f06b5
--- /dev/null
+++ b/pkgs/development/ocaml-modules/mirage-block/default.nix
@@ -0,0 +1,24 @@
+{ lib, fetchurl, buildDunePackage
+, cstruct, lwt, mirage-device
+}:
+
+buildDunePackage rec {
+ pname = "mirage-block";
+ version = "2.0.1";
+
+ useDune2 = true;
+
+ src = fetchurl {
+ url = "https://github.com/mirage/mirage-block/releases/download/v${version}/mirage-block-v${version}.tbz";
+ sha256 = "1wp8wmixaz9i2sbvq6nkx903lbnpdgb2w404pz1wk8kcg9p3ilcc";
+ };
+
+ propagatedBuildInputs = [ cstruct lwt mirage-device ];
+
+ meta = {
+ description = "Block signatures and implementations for MirageOS";
+ homepage = "https://github.com/mirage/mirage-block";
+ license = lib.licenses.isc;
+ maintainers = [ lib.maintainers.vbgl ];
+ };
+}