1# `just` {#just-hook}
2
3This setup hook attempts to use [the `just` command runner](https://just.systems/man/en/) to build, check, and install the package. The hook overrides `buildPhase`, `checkPhase`, and `installPhase` by default.
4
5[]{#just-hook-justFlags} The `justFlags` variable can be set to a list of strings to add additional flags passed to all invocations of `just`.
6
7## `buildPhase` {#just-hook-buildPhase}
8
9This phase attempts to invoke `just` with [the default recipe](https://just.systems/man/en/the-default-recipe.html).
10
11[]{#just-hook-dontUseJustBuild} This behavior can be disabled by setting `dontUseJustBuild` to `true`.
12
13## `checkPhase` {#just-hook-checkPhase}
14
15This phase attempts to invoke the `just test` recipe, if it is available. This can be overrided by setting `checkTarget` to a string.
16
17[]{#just-hook-dontUseJustCheck} This behavior can be disabled by setting `dontUseJustCheck` to `true`.
18
19## `installPhase` {#just-hook-installPhase}
20
21This phase attempts to invoke the `just install` recipe.
22
23[]{#just-hook-dontUseJustInstall} This behavior can be disabled by setting `dontUseJustInstall` to `true`.