Add notes on how to use the dev shell setup
This commit is contained in:
parent
0a6e97b978
commit
6591b76532
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -2,3 +2,5 @@
|
||||||
# SPDX-License-Identifier: MIT
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
result*
|
result*
|
||||||
|
.*.sw[a-z]
|
||||||
|
*~
|
||||||
|
|
19
README.md
19
README.md
|
@ -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
|
||||||
|
```
|
||||||
|
|
|
@ -59,6 +59,12 @@ in
|
||||||
unzip
|
unzip
|
||||||
];
|
];
|
||||||
|
|
||||||
|
shellHook = ''
|
||||||
|
bazelFlagsArray+=(
|
||||||
|
'--javacopt="-XepDisableAllChecks"'
|
||||||
|
)
|
||||||
|
'';
|
||||||
|
|
||||||
prePatch = ''
|
prePatch = ''
|
||||||
rm .bazelversion
|
rm .bazelversion
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue