Files
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

39 lines
830 B
Nix

{
lib,
fetchurl,
buildDunePackage,
io-page,
mirage-block,
}:
buildDunePackage rec {
pname = "mirage-block-ramdisk";
version = "0.5";
src = fetchurl {
url = "https://github.com/mirage/mirage-block-ramdisk/releases/download/${version}/mirage-block-ramdisk-${version}.tbz";
sha256 = "cc0e814fd54efe7a5b7a8c5eb1c04e2dece751b7d8dee2d95908a0768896e8af";
};
# Make compatible with cstruct 6.1.0
postPatch = ''
substituteInPlace src/ramdisk.ml --replace 'Cstruct.len' 'Cstruct.length'
'';
minimalOCamlVersion = "4.06";
duneVersion = "3";
propagatedBuildInputs = [
io-page
mirage-block
];
doCheck = false;
meta = {
description = "In-memory BLOCK device for MirageOS";
homepage = "https://github.com/mirage/mirage-block-ramdisk";
license = lib.licenses.isc;
};
}