1 { lib, fetchurl, buildDunePackage, io-page, mirage-block }:
4 pname = "mirage-block-ramdisk";
9 "https://github.com/mirage/mirage-block-ramdisk/releases/download/${version}/mirage-block-ramdisk-${version}.tbz";
10 sha256 = "cc0e814fd54efe7a5b7a8c5eb1c04e2dece751b7d8dee2d95908a0768896e8af";
13 # Make compatible with cstruct 6.1.0
15 substituteInPlace src/ramdisk.ml --replace 'Cstruct.len' 'Cstruct.length'
18 minimalOCamlVersion = "4.06";
20 propagatedBuildInputs = [ io-page mirage-block ];
25 description = "In-memory BLOCK device for MirageOS";
26 homepage = "https://github.com/mirage/mirage-block-ramdisk";
27 license = licenses.isc;
28 maintainers = with maintainers; [ ehmry ];