nixpkgs/pkgs/development/ocaml-modules/mirage-block-ramdisk/default.nix
Ulrik Strid aee04b1bed
ocamlPackages.git: 3.5.0 -> 3.9.1 (#188389)
* ocamlPackages.cstruct: 6.0.1 -> 6.1.1

* ocamlPackages.git: 3.5.0 -> 3.9.1

* ocamlPackages.carton: 0.4.3 -> 0.4.4

* ocamlPackages.bigstringaf: 0.7.0 -> 0.9.0

* ocamlPackages.decompress: 1.4.2 -> 1.5.1

* ocamlPackages.repr: 0.5.0 -> 0.6.0

* ocamlPackages.irmin: 2.9.1 -> 3.4.1

* ligo: 0.36.0 -> 0.47.0

ocamlPackages.ringo: 0.5 → 0.9
ocamlPackages.data-encoding: 0.4.0 → 0.5.3
ocamlPackages.bls12-381: 1.1.0 -> 3.0.0

Co-authored-by: bezmuth <benkel97@protonmail.com>
2022-10-11 08:50:54 +02:00

31 lines
847 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";
propagatedBuildInputs = [ io-page mirage-block ];
doCheck = false;
meta = with lib; {
description = "In-memory BLOCK device for MirageOS";
homepage = "https://github.com/mirage/mirage-block-ramdisk";
license = licenses.isc;
maintainers = with maintainers; [ ehmry ];
};
}