about summary refs log tree commit diff
path: root/pkgs/by-name/gi/gitea-actions-runner/package.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/by-name/gi/gitea-actions-runner/package.nix')
-rw-r--r--pkgs/by-name/gi/gitea-actions-runner/package.nix42
1 files changed, 42 insertions, 0 deletions
diff --git a/pkgs/by-name/gi/gitea-actions-runner/package.nix b/pkgs/by-name/gi/gitea-actions-runner/package.nix
new file mode 100644
index 000000000000..d84c0de480b2
--- /dev/null
+++ b/pkgs/by-name/gi/gitea-actions-runner/package.nix
@@ -0,0 +1,42 @@
+{
+  lib,
+  fetchFromGitea,
+  buildGo123Module,
+  testers,
+  gitea-actions-runner,
+}:
+
+buildGo123Module rec {
+  pname = "gitea-actions-runner";
+  version = "0.2.11";
+
+  src = fetchFromGitea {
+    domain = "gitea.com";
+    owner = "gitea";
+    repo = "act_runner";
+    rev = "v${version}";
+    hash = "sha256-PmDa8XIe1uZ4SSrs9zh5HBmFaOuj+uuLm7jJ4O5V1dI=";
+  };
+
+  vendorHash = "sha256-lYJFySGqkhT89vHDp1FcTiiC7DG4ziQ1DaBHLh/kXQc=";
+
+  ldflags = [
+    "-s"
+    "-w"
+    "-X gitea.com/gitea/act_runner/internal/pkg/ver.version=v${version}"
+  ];
+
+  passthru.tests.version = testers.testVersion {
+    package = gitea-actions-runner;
+    version = "v${version}";
+  };
+
+  meta = with lib; {
+    mainProgram = "act_runner";
+    maintainers = with maintainers; [ techknowlogick ];
+    license = licenses.mit;
+    changelog = "https://gitea.com/gitea/act_runner/releases/tag/v${version}";
+    homepage = "https://gitea.com/gitea/act_runner";
+    description = "Runner for Gitea based on act";
+  };
+}