about summary refs log tree commit diff
path: root/third_party
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2021-12-09T10·22+0300
committertazjin <mail@tazj.in>2021-12-09T11·16+0000
commit417a1ba9ebcc8b6b43f1a38800f45294ab723c74 (patch)
tree9fba7506efe619407e2ce991ba1f3d1a8c7e342f /third_party
parent5fd3140cf32e37ca4869b6a8c230660bf0bc5a2a (diff)
feat(3p/gerrit-queue): Add derivation for gerrit-queue r/3167
This is a Gerrit autosubmit bot (actually written by flokli) which we
intend to use.

For now we're using the plain upstream version, but we'll want to
patch some of the behaviours of it so there's a vendoring on the
horizon.

Change-Id: I021d41b55f9f678435d9aec6d359545577cb9ec0
Diffstat (limited to 'third_party')
-rw-r--r--third_party/gerrit-queue/default.nix26
1 files changed, 26 insertions, 0 deletions
diff --git a/third_party/gerrit-queue/default.nix b/third_party/gerrit-queue/default.nix
new file mode 100644
index 000000000000..f358a063ec13
--- /dev/null
+++ b/third_party/gerrit-queue/default.nix
@@ -0,0 +1,26 @@
+{ pkgs, lib, ... }:
+
+pkgs.buildGoModule {
+  pname = "gerrit-queue";
+  version = "master";
+  vendorSha256 = "0hivr4yn9aa1vk7z1h1nwg75hzqnsaxypi1wwxdy1l1hnm5k8hhi";
+
+  src = pkgs.fetchFromGitHub {
+    owner = "tweag";
+    repo = "gerrit-queue";
+    rev = "c67b3ba7ea769cd747ea2f43ee6d12943d599ae0";
+    hash = "sha256:1x0g6fd5hymf6a8wxj1b1xi4x1hmwpnx4f2cdidgvsyd77v902c1";
+  };
+
+  # gerrit-queue embeds static assets which need to be generated
+  nativeBuildInputs = [ pkgs.statik ];
+  preBuild = ''
+    statik -f
+  '';
+
+  meta = with lib; {
+    description = "Gerrit submit bot";
+    homepage = "https://github.com/tweag/gerrit-queue";
+    license = licenses.asl20;
+  };
+}