summaryrefslogtreecommitdiffstats
path: root/pkgs/development/ocaml-modules/mirage-xen/default.nix
blob: eb801d8e001c73b91f627c4b6f15a255bfc65e2b (plain)
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
{
  lib,
  buildDunePackage,
  fetchurl,
  cstruct,
  lwt,
  shared-memory-ring-lwt,
  xenstore,
  lwt-dllist,
  mirage-profile,
  mirage-runtime,
  logs,
  fmt,
  bheap,
  duration,
  io-page,
}:

buildDunePackage (finalAttrs: {
  pname = "mirage-xen";
  version = "8.0.1";

  src = fetchurl {
    url = "https://github.com/mirage/mirage-xen/releases/download/v${finalAttrs.version}/mirage-xen-${finalAttrs.version}.tbz";
    hash = "sha256-x8i2Kbz0EcifZK/lbDIFa9Kwtl1/xzbYV9h9E+EtGP4=";
  };

  minimalOCamlVersion = "4.08";
  duneVersion = "3";

  propagatedBuildInputs = [
    cstruct
    lwt
    shared-memory-ring-lwt
    xenstore
    lwt-dllist
    mirage-profile
    mirage-runtime
    io-page
    logs
    fmt
    bheap
    duration
  ];

  meta = {
    description = "Xen core platform libraries for MirageOS";
    license = lib.licenses.isc;
    maintainers = [ lib.maintainers.sternenseemann ];
    homepage = "https://github.com/mirage/mirage-xen";
  };
})