2022-07-14 12:49:19 +00:00
|
|
|
{ lib, fetchurl, buildDunePackage, cstruct-lwt, diet, io-page, logs
|
|
|
|
, mirage-block, ounit2, rresult, uri }:
|
2021-01-05 17:05:55 +00:00
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "mirage-block-unix";
|
2022-07-14 12:49:19 +00:00
|
|
|
version = "2.14.1";
|
2021-01-05 17:05:55 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url =
|
2022-07-14 12:49:19 +00:00
|
|
|
"https://github.com/mirage/mirage-block-unix/releases/download/v${version}/mirage-block-unix-${version}.tbz";
|
|
|
|
sha256 = "sha256-FcUhbjHKT11ePDXaAVzUdV/WOHoxMoXyZKG5ikKpBNU=";
|
2021-01-05 17:05:55 +00:00
|
|
|
};
|
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
minimalOCamlVersion = "4.06";
|
2021-01-05 17:05:55 +00:00
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
propagatedBuildInputs = [ cstruct-lwt io-page logs mirage-block rresult uri ];
|
2021-01-05 17:05:55 +00:00
|
|
|
|
|
|
|
doCheck = true;
|
2022-07-14 12:49:19 +00:00
|
|
|
checkInputs = [ diet ounit2 ];
|
2021-01-05 17:05:55 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|