git.iko.soy/typeable/nixpkgs
on master help sign in
ocamlPackages.mirage-block-unix: init at 2.12.1
commite816a6034902b452e1f0bf1621205aa6d732a93a authorEmery Hemingway <ehmry@posteo.net> dateSat 26 Dec 2020, 19:53 (6 years ago) parent3d2ffa3
2 files changed+31
pkgs/development/ocaml-modules/mirage-block-unix/default.nix+29 pkgs/top-level/ocaml-packages.nix+2
pkgs/development/ocaml-modules/mirage-block-unix/default.nixnew file+29
@@ -0,0 +1,29 @@
1+{ lib, fetchurl, buildDunePackage, cstruct-lwt, diet, io-page-unix, logs
2+, mirage-block, ounit, rresult, uri }:
3+
4+buildDunePackage rec {
5+ pname = "mirage-block-unix";
6+ version = "2.12.1";
7+
8+ useDune2 = true;
9+
10+ src = fetchurl {
11+ url =
12+ "https://github.com/mirage/mirage-block-unix/releases/download/v${version}/mirage-block-unix-v${version}.tbz";
13+ sha256 = "4fc0ccea3c06c654e149c0f0e1c2a6f19be4e3fe1afd293c6a0dba1b56b3b8c4";
14+ };
15+
16+ minimumOCamlVersion = "4.06";
17+
18+ propagatedBuildInputs = [ cstruct-lwt logs mirage-block rresult uri ];
19+
20+ doCheck = true;
21+ checkInputs = [ diet io-page-unix ounit ];
22+
23+ meta = with lib; {
24+ description = "MirageOS disk block driver for Unix";
25+ homepage = "https://github.com/mirage/mirage-block-unix";
26+ license = licenses.isc;
27+ maintainers = with maintainers; [ ehmry ];
28+ };
29+}
pkgs/top-level/ocaml-packages.nix+2
@@ -579,6 +579,8 @@ let
579579
580580 mirage-block-ramdisk = callPackage ../development/ocaml-modules/mirage-block-ramdisk { };
581581
582+ mirage-block-unix = callPackage ../development/ocaml-modules/mirage-block-unix { };
583+
582584 mirage-bootvar-unix = callPackage ../development/ocaml-modules/mirage-bootvar-unix { };
583585
584586 mirage-channel = callPackage ../development/ocaml-modules/mirage-channel { };