summaryrefslogtreecommitdiffstats
path: root/pkgs/development/ocaml-modules/mirage-unix/default.nix
blob: 8c20a5e8ed9f4f1357f243e9164f50eaa12bc8f1 (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
{
  lib,
  buildDunePackage,
  fetchurl,
  lwt,
  duration,
  mirage-runtime,
}:

buildDunePackage (finalAttrs: {
  pname = "mirage-unix";
  version = "5.0.1";

  duneVersion = "3";

  src = fetchurl {
    url = "https://github.com/mirage/mirage-unix/releases/download/v${finalAttrs.version}/mirage-unix-${finalAttrs.version}.tbz";
    hash = "sha256-U1oLznUDBcJLcVygfSiyl5qRLDM27cm/WrjT0vSGhPg=";
  };

  propagatedBuildInputs = [
    lwt
    duration
    mirage-runtime
  ];
  doCheck = true;

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