2023-02-09 11:40:11 +00:00
|
|
|
{ lib, fetchurl, buildDunePackage, pkg-config, cstruct, bigarray-compat, ounit }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "io-page";
|
2022-07-14 12:49:19 +00:00
|
|
|
version = "3.0.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
minimalOCamlVersion = "4.08";
|
2023-03-30 22:05:00 +00:00
|
|
|
duneVersion = "3";
|
2020-05-29 06:06:01 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2022-07-14 12:49:19 +00:00
|
|
|
url = "https://github.com/mirage/${pname}/releases/download/v${version}/${pname}-${version}.tbz";
|
2023-03-30 22:05:00 +00:00
|
|
|
hash = "sha256-DjbKdNkFa6YQgJDLmLsuvyrweb4/TNvqAiggcj/3hu4=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-02-09 11:40:11 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2020-05-29 06:06:01 +00:00
|
|
|
propagatedBuildInputs = [ cstruct bigarray-compat ];
|
2023-02-09 11:40:11 +00:00
|
|
|
checkInputs = [ ounit ];
|
2020-05-29 06:06:01 +00:00
|
|
|
doCheck = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "https://github.com/mirage/io-page";
|
2021-01-15 22:18:51 +00:00
|
|
|
license = lib.licenses.isc;
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "IO memory page library for Mirage backends";
|
2021-01-15 22:18:51 +00:00
|
|
|
maintainers = with lib.maintainers; [ vbgl ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|