2022-10-21 18:38:19 +00:00
|
|
|
{ lib, fetchurl, buildDunePackage, cstruct-lwt, diet, logs
|
2023-02-09 11:40:11 +00:00
|
|
|
, mirage-block, ounit2, rresult, uri
|
|
|
|
}:
|
2021-01-05 17:05:55 +00:00
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "mirage-block-unix";
|
2022-10-21 18:38:19 +00:00
|
|
|
version = "2.14.2";
|
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";
|
2022-10-21 18:38:19 +00:00
|
|
|
sha256 = "sha256-6ReAzd+pCd5ccmXOh6GlSxHo4GuEgptxLha62n+dBsE=";
|
2021-01-05 17:05:55 +00:00
|
|
|
};
|
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
minimalOCamlVersion = "4.08";
|
2023-03-30 22:05:00 +00:00
|
|
|
duneVersion = "3";
|
2021-01-05 17:05:55 +00:00
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
propagatedBuildInputs = [ cstruct-lwt logs mirage-block rresult uri ];
|
2021-01-05 17:05:55 +00:00
|
|
|
|
|
|
|
doCheck = true;
|
2023-02-09 11:40:11 +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 ];
|
|
|
|
};
|
|
|
|
}
|