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