summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/io-page/default.nix
blob: 8580bb64713438c86b08e014e1638d1bc4d7c1da (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
{ stdenv, fetchzip, ocaml, findlib, cstruct }:

let version = "1.5.1"; in

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

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

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

  createFindlibDestdir = true;

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