diff options
author | Emery Hemingway <ehmry@posteo.net> | 2020-12-26 19:53:40 +0100 |
---|---|---|
committer | Vincent Laporte <Vincent.Laporte@gmail.com> | 2020-12-31 11:01:09 +0100 |
commit | e816a6034902b452e1f0bf1621205aa6d732a93a (patch) | |
tree | df450d79e05afff3d76744058e31ef1218fb06c6 /pkgs/development/ocaml-modules | |
parent | 3d2ffa3dbf8782158283a674c6fa03ffff78b019 (diff) | |
download | nixlib-e816a6034902b452e1f0bf1621205aa6d732a93a.tar nixlib-e816a6034902b452e1f0bf1621205aa6d732a93a.tar.gz nixlib-e816a6034902b452e1f0bf1621205aa6d732a93a.tar.bz2 nixlib-e816a6034902b452e1f0bf1621205aa6d732a93a.tar.lz nixlib-e816a6034902b452e1f0bf1621205aa6d732a93a.tar.xz nixlib-e816a6034902b452e1f0bf1621205aa6d732a93a.tar.zst nixlib-e816a6034902b452e1f0bf1621205aa6d732a93a.zip |
ocamlPackages.mirage-block-unix: init at 2.12.1
Diffstat (limited to 'pkgs/development/ocaml-modules')
-rw-r--r-- | pkgs/development/ocaml-modules/mirage-block-unix/default.nix | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/mirage-block-unix/default.nix b/pkgs/development/ocaml-modules/mirage-block-unix/default.nix new file mode 100644 index 000000000000..a24c4c9e821f --- /dev/null +++ b/pkgs/development/ocaml-modules/mirage-block-unix/default.nix @@ -0,0 +1,29 @@ +{ lib, fetchurl, buildDunePackage, cstruct-lwt, diet, io-page-unix, logs +, mirage-block, ounit, rresult, uri }: + +buildDunePackage rec { + pname = "mirage-block-unix"; + version = "2.12.1"; + + useDune2 = true; + + src = fetchurl { + url = + "https://github.com/mirage/mirage-block-unix/releases/download/v${version}/mirage-block-unix-v${version}.tbz"; + sha256 = "4fc0ccea3c06c654e149c0f0e1c2a6f19be4e3fe1afd293c6a0dba1b56b3b8c4"; + }; + + minimumOCamlVersion = "4.06"; + + propagatedBuildInputs = [ cstruct-lwt logs mirage-block rresult uri ]; + + doCheck = true; + checkInputs = [ diet io-page-unix ounit ]; + + meta = with lib; { + description = "MirageOS disk block driver for Unix"; + homepage = "https://github.com/mirage/mirage-block-unix"; + license = licenses.isc; + maintainers = with maintainers; [ ehmry ]; + }; +} |