summaryrefslogtreecommitdiffstats
path: root/pkgs/development/hare-third-party/hare-ev/default.nix
blob: 64c149826efdde61acabf861db47dbac991992c8 (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
{
  fetchFromSourcehut,
  hareHook,
  lib,
  stdenv,
  gitUpdater,
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "hare-ev";
  version = "0.26.0.0";

  src = fetchFromSourcehut {
    owner = "~sircmpwn";
    repo = "hare-ev";
    tag = finalAttrs.version;
    hash = "sha256-Chetww+F46ZJ+cgVuoFXRVYOT9g13iBK5EembWXQhuc=";
  };

  nativeCheckInputs = [ hareHook ];

  makeFlags = [ "PREFIX=${placeholder "out"}" ];

  doCheck = true;

  passthru.updateScript = gitUpdater { };

  meta = {
    description = "Event loop for Hare programs";
    homepage = "https://sr.ht/~sircmpwn/hare-ev";
    license = lib.licenses.mpl20;
    maintainers = with lib.maintainers; [ colinsane ];
    inherit (hareHook.meta) platforms badPlatforms;
  };
})