2017-03-04 06:33:30 +01:00
|
|
|
{ stdenv, fetchzip, ocaml, findlib, ocamlbuild, cstruct }:
|
2015-03-02 11:05:13 +01:00
|
|
|
|
2017-03-28 19:05:47 +02:00
|
|
|
let version = "1.6.1"; in
|
2015-03-02 11:05:13 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "ocaml-io-page-${version}";
|
|
|
|
|
|
|
|
src = fetchzip {
|
|
|
|
url = "https://github.com/mirage/io-page/archive/v${version}.tar.gz";
|
2017-03-28 19:05:47 +02:00
|
|
|
sha256 = "1djwks3ss12m55q6h4jsvfsy848cxfnpaxkilw10h26xj6jchflz";
|
2015-03-02 11:05:13 +01:00
|
|
|
};
|
|
|
|
|
2017-03-04 06:33:30 +01:00
|
|
|
buildInputs = [ ocaml findlib ocamlbuild ];
|
2015-03-02 11:05:13 +01:00
|
|
|
propagatedBuildInputs = [ cstruct ];
|
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = https://github.com/mirage/io-page;
|
2015-12-24 18:49:07 +01:00
|
|
|
platforms = ocaml.meta.platforms or [];
|
2015-03-02 11:05:13 +01:00
|
|
|
description = "IO memory page library for Mirage backends";
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ vbgl ];
|
|
|
|
};
|
|
|
|
}
|