2022-06-26 17:44:15 +00:00
|
|
|
{ lib, fetchurl, buildDunePackage, cstruct-lwt, diet, io-page, logs
|
|
|
|
, mirage-block, ounit2, rresult, uri }:
|
2020-12-26 18:53:40 +00:00
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "mirage-block-unix";
|
2022-06-26 17:44:15 +00:00
|
|
|
version = "2.14.1";
|
2020-12-26 18:53:40 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url =
|
2022-06-26 17:44:15 +00:00
|
|
|
"https://github.com/mirage/mirage-block-unix/releases/download/v${version}/mirage-block-unix-${version}.tbz";
|
|
|
|
sha256 = "sha256-FcUhbjHKT11ePDXaAVzUdV/WOHoxMoXyZKG5ikKpBNU=";
|
2020-12-26 18:53:40 +00:00
|
|
|
};
|
|
|
|
|
2022-06-26 17:44:15 +00:00
|
|
|
minimalOCamlVersion = "4.06";
|
2020-12-26 18:53:40 +00:00
|
|
|
|
2022-06-26 17:44:15 +00:00
|
|
|
propagatedBuildInputs = [ cstruct-lwt io-page logs mirage-block rresult uri ];
|
2020-12-26 18:53:40 +00:00
|
|
|
|
|
|
|
doCheck = true;
|
2022-06-26 17:44:15 +00:00
|
|
|
checkInputs = [ diet ounit2 ];
|
2020-12-26 18:53:40 +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 ];
|
|
|
|
};
|
|
|
|
}
|