about summary refs log tree commit diff
diff options
context:
space:
mode:
authorColin Sane <accounts.github@uninsane.org>2023-12-20 00:29:04 +0000
committerGitHub <noreply@github.com>2023-12-20 01:29:04 +0100
commit64121103ec8253dce1c285ffd2b1e35f0351fe30 (patch)
treee5acab2f3f0395ef859608b9899c395264ee2819
parent0ddc9072288db2b7f52fbea324f3bf378762a899 (diff)
hareThirdParty.hare-ev: init at unstable-2023-10-31
* hareThirdParty.hare-ev: init at unstable-2023-10-30 (#274505)

---------

Co-authored-by: Janik <80165193+Janik-Haag@users.noreply.github.com>
-rw-r--r--pkgs/development/hare-third-party/hare-ev/default.nix39
-rw-r--r--pkgs/top-level/hare-third-party.nix1
2 files changed, 40 insertions, 0 deletions
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 0000000000000..2186c0eaf532d
--- /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 ac2dc254e50da..ae3cbafda23f4 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 { };
 })