2018-08-21 23:07:35 +01:00
|
|
|
{ stdenv, fetchzip, ocaml, findlib, jbuilder, configurator, cstruct }:
|
2015-03-02 10:05:13 +00:00
|
|
|
|
2018-08-21 23:07:35 +01:00
|
|
|
let version = "2.0.1"; in
|
2015-03-02 10:05:13 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2018-08-21 23:07:35 +01:00
|
|
|
name = "ocaml${ocaml.version}-io-page-${version}";
|
2015-03-02 10:05:13 +00:00
|
|
|
|
|
|
|
src = fetchzip {
|
2018-08-21 23:07:35 +01:00
|
|
|
url = "https://github.com/mirage/io-page/archive/${version}.tar.gz";
|
|
|
|
sha256 = "1rw04dwrlx5hah5dkjf7d63iff82j9cifr8ifjis5pdwhgwcff8i";
|
2015-03-02 10:05:13 +00:00
|
|
|
};
|
|
|
|
|
2018-08-21 23:07:35 +01:00
|
|
|
buildInputs = [ ocaml findlib jbuilder configurator ];
|
2015-03-02 10:05:13 +00:00
|
|
|
propagatedBuildInputs = [ cstruct ];
|
|
|
|
|
2018-08-21 23:07:35 +01:00
|
|
|
inherit (jbuilder) installPhase;
|
2015-03-02 10:05:13 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = https://github.com/mirage/io-page;
|
2018-08-21 23:07:35 +01:00
|
|
|
inherit (ocaml.meta) platforms;
|
|
|
|
license = stdenv.lib.licenses.isc;
|
2015-03-02 10:05:13 +00:00
|
|
|
description = "IO memory page library for Mirage backends";
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ vbgl ];
|
|
|
|
};
|
|
|
|
}
|