nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
1{ lib, fetchurl, buildDunePackage, io-page, mirage-block }: 2 3buildDunePackage rec { 4 pname = "mirage-block-ramdisk"; 5 version = "0.5"; 6 7 src = fetchurl { 8 url = 9 "https://github.com/mirage/mirage-block-ramdisk/releases/download/${version}/mirage-block-ramdisk-${version}.tbz"; 10 sha256 = "cc0e814fd54efe7a5b7a8c5eb1c04e2dece751b7d8dee2d95908a0768896e8af"; 11 }; 12 13 # Make compatible with cstruct 6.1.0 14 postPatch = '' 15 substituteInPlace src/ramdisk.ml --replace 'Cstruct.len' 'Cstruct.length' 16 ''; 17 18 minimalOCamlVersion = "4.06"; 19 duneVersion = "3"; 20 21 propagatedBuildInputs = [ io-page mirage-block ]; 22 23 doCheck = false; 24 25 meta = with lib; { 26 description = "In-memory BLOCK device for MirageOS"; 27 homepage = "https://github.com/mirage/mirage-block-ramdisk"; 28 license = licenses.isc; 29 maintainers = with maintainers; [ ehmry ]; 30 }; 31}