No description
  • Nix 68.1%
  • Python 17.2%
  • Shell 9.2%
  • Starlark 5.5%
Find a file
Yureka a273e7e68b
Some checks failed
/ ci-next (x86_64-linux) (pull_request) Successful in 6s
/ ci-next (aarch64-linux) (pull_request) Successful in 10s
/ ci (aarch64-linux) (pull_request) Successful in 5m57s
/ ci (x86_64-linux) (pull_request) Successful in 2m44s
/ ci-next (x86_64-linux) (push) Failing after 5m32s
/ ci (x86_64-linux) (push) Failing after 5m57s
/ ci-next (aarch64-linux) (push) Successful in 8m48s
/ ci (aarch64-linux) (push) Successful in 9m37s
refactor: Add update script, prefetch .version file
2026-04-12 17:23:44 +02:00
.forgejo/workflows ci: enable 2025-11-15 02:57:36 +01:00
.reuse Initial commit 2024-07-08 20:50:14 +01:00
buildBazelPackageNG fix: support IPv6-only networks 2025-08-11 00:45:48 +02:00
gerrit refactor: Add update script, prefetch .version file 2026-04-12 17:23:44 +02:00
LICENSES Initial commit 2024-07-08 20:50:14 +01:00
plugins refactor: Add update script, prefetch .version file 2026-04-12 17:23:44 +02:00
.gitignore Add notes on how to use the dev shell setup 2024-07-08 21:08:45 +01:00
AUTHORS Initial commit 2024-07-08 20:50:14 +01:00
COPYING Initial commit 2024-07-08 20:50:14 +01:00
default.nix Add readonly plugin 2026-01-30 16:27:05 +01:00
flake.lock *: fix broken Nixpkgs support 2025-12-23 18:12:49 +01:00
flake.nix Add readonly plugin 2026-01-30 16:27:05 +01:00
README.md Add notes on how to use the dev shell setup 2024-07-08 21:08:45 +01:00
shell.nix Initial commit 2024-07-08 20:50:14 +01:00
update.py refactor: Add update script, prefetch .version file 2026-04-12 17:23:44 +02:00

nix-gerrit

Lix expressions for building Gerrit Code Review

Note that this is not and is not intended to be a fully vanilla Gerrit builder. This set of Gerrit expressions contains some patches that deviate from upstream. Be warned and review carefully!

Gerrit

Gerrit can be built with

nix-build -A gerrit
# or, if you're feeling flake-y:
nix build

Gerrit Plugins

OAuth

The out-of-tree Gerrit OAuth2 plugin is available.

nix-build -A plugins.oauth
# or
nix build '.#plugins.oauth'

Code-Owners

The out-of-tree Gerrit Code-Owners plugin is available.

nix-build -A plugins.code-owners
# or
nix build '.#plugins.code-owners'

Building everything at once

Everything in the tree can be built at once using the ci expression:

nix-build -A ci
# or
nix build '.#ci'

Development environment

A development shell, containing enough stuff to build Gerrit on NixOS without too much faff is available:

nix-shell
# note that nix develop is currently broken

You can then build/test/etc inside a Gerrit Git checkout:

cd ~/src/gerrit
bazel build //:release
java -jar bazel-bin/release.war