From 7be0ab82496da2568988fda6989b65f6f1f4f90c Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Sat, 17 Oct 2020 07:35:47 +0200 Subject: [PATCH] ocamlPackages.mirage-fs: init at 3.0.1 --- .../ocaml-modules/mirage-fs/default.nix | 24 +++++++++++++++++++ pkgs/top-level/ocaml-packages.nix | 2 ++ 2 files changed, 26 insertions(+) create mode 100644 pkgs/development/ocaml-modules/mirage-fs/default.nix diff --git a/pkgs/development/ocaml-modules/mirage-fs/default.nix b/pkgs/development/ocaml-modules/mirage-fs/default.nix new file mode 100644 index 00000000000..d8cfddff313 --- /dev/null +++ b/pkgs/development/ocaml-modules/mirage-fs/default.nix @@ -0,0 +1,24 @@ +{ lib, fetchurl, buildDunePackage +, cstruct, fmt, lwt, mirage-device, mirage-kv +}: + +buildDunePackage rec { + pname = "mirage-fs"; + version = "3.0.1"; + + useDune2 = true; + + src = fetchurl { + url = "https://github.com/mirage/mirage-fs/releases/download/v${version}/mirage-fs-v${version}.tbz"; + sha256 = "0px18bgk528vr7iw78r0j3z4sdcz684sfcj47ibbly2adbvd64yk"; + }; + + propagatedBuildInputs = [ cstruct fmt lwt mirage-device mirage-kv ]; + + meta = { + description = "MirageOS signatures for filesystem devices"; + homepage = "https://github.com/mirage/mirage-fs"; + license = lib.licenses.isc; + maintainers = [ lib.maintainers.vbgl ]; + }; +} diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index 0dd35d38342..bad6c505d7b 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -559,6 +559,8 @@ let mirage-flow-unix = callPackage ../development/ocaml-modules/mirage-flow/unix.nix { }; + mirage-fs = callPackage ../development/ocaml-modules/mirage-fs { }; + mirage-kv = callPackage ../development/ocaml-modules/mirage-kv { }; mirage-protocols = callPackage ../development/ocaml-modules/mirage-protocols { };