diff --git a/pkgs/development/hare-third-party/hare-ev/default.nix b/pkgs/development/hare-third-party/hare-ev/default.nix new file mode 100644 index 000000000000..2186c0eaf532 --- /dev/null +++ b/pkgs/development/hare-third-party/hare-ev/default.nix @@ -0,0 +1,39 @@ +{ stdenv +, lib +, fetchFromSourcehut +, hare +, unstableGitUpdater +}: + +stdenv.mkDerivation { + pname = "hare-ev"; + version = "unstable-2023-10-31"; + + src = fetchFromSourcehut { + owner = "~sircmpwn"; + repo = "hare-ev"; + rev = "9bdbd02401334b7d762131a46e64ca2cd24846dc"; + hash = "sha256-VY8nsy5kLDMScA2ig3Rgbkf6VQlCTnGWjzGvsI9OcaQ="; + }; + + nativeCheckInputs = [ + hare + ]; + + makeFlags = [ + "HARECACHE=.harecache" + "PREFIX=${builtins.placeholder "out"}" + ]; + + doCheck = true; + + passthru.updateScript = unstableGitUpdater { }; + + meta = with lib; { + description = "Event loop for Hare programs"; + homepage = "https://sr.ht/~sircmpwn/hare-ev"; + license = licenses.mpl20; + maintainers = with maintainers; [ colinsane ]; + inherit (hare.meta) platforms badPlatforms; + }; +} diff --git a/pkgs/top-level/hare-third-party.nix b/pkgs/top-level/hare-third-party.nix index ac2dc254e50d..ae3cbafda23f 100644 --- a/pkgs/top-level/hare-third-party.nix +++ b/pkgs/top-level/hare-third-party.nix @@ -7,5 +7,6 @@ in { hare-compress = callPackage ../development/hare-third-party/hare-compress { }; + hare-ev = callPackage ../development/hare-third-party/hare-ev { }; hare-json = callPackage ../development/hare-third-party/hare-json { }; })