summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/io-page/default.nix
blob: 72b7a3a54ce7251603e4e0c67df9bb689f833e7f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{ stdenv, fetchzip, ocaml, findlib, jbuilder, configurator, cstruct }:

let version = "2.0.1"; in

stdenv.mkDerivation {
  name = "ocaml${ocaml.version}-io-page-${version}";

  src = fetchzip {
    url = "https://github.com/mirage/io-page/archive/${version}.tar.gz";
    sha256 = "1rw04dwrlx5hah5dkjf7d63iff82j9cifr8ifjis5pdwhgwcff8i";
  };

  buildInputs = [ ocaml findlib jbuilder configurator ];
  propagatedBuildInputs = [ cstruct ];

  inherit (jbuilder) installPhase;

  meta = {
    homepage = https://github.com/mirage/io-page;
    inherit (ocaml.meta) platforms;
    license = stdenv.lib.licenses.isc;
    description = "IO memory page library for Mirage backends";
    maintainers = with stdenv.lib.maintainers; [ vbgl ];
  };
}