Add notes on how to use the dev shell setup

This commit is contained in:
Luke Granger-Brown 2024-07-08 20:50:14 +01:00
parent 0a6e97b978
commit 6591b76532
3 changed files with 26 additions and 1 deletions

2
.gitignore vendored
View file

@ -2,3 +2,5 @@
# SPDX-License-Identifier: MIT # SPDX-License-Identifier: MIT
result* result*
.*.sw[a-z]
*~

View file

@ -46,10 +46,27 @@ nix build '.#plugins.code-owners'
## Building everything at once ## Building everything at once
Everything in the tree can be built at once using the `ci` expressiong: Everything in the tree can be built at once using the `ci` expression:
``` ```
nix-build -A ci nix-build -A ci
# or # or
nix build '.#ci' 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
```

View file

@ -59,6 +59,12 @@ in
unzip unzip
]; ];
shellHook = ''
bazelFlagsArray+=(
'--javacopt="-XepDisableAllChecks"'
)
'';
prePatch = '' prePatch = ''
rm .bazelversion rm .bazelversion