diff options
author | Emily | 2024-09-04 20:51:44 +0100 |
---|---|---|
committer | Emily | 2024-09-05 08:10:09 +0100 |
commit | f3c19826060547ae54f16c0dd1883079a6390325 (patch) | |
tree | a4776e510b44d487a4d7c7b194452720b1276132 | |
parent | b91e47c585aeee001fa41ea8b7582c6347bb8ba1 (diff) |
jujutsu: don’t build crates without tests in `checkPhase`
-rw-r--r-- | pkgs/by-name/ju/jujutsu/package.nix | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pkgs/by-name/ju/jujutsu/package.nix b/pkgs/by-name/ju/jujutsu/package.nix index d4a65adaf21f..210c3a1d5476 100644 --- a/pkgs/by-name/ju/jujutsu/package.nix +++ b/pkgs/by-name/ju/jujutsu/package.nix @@ -68,6 +68,14 @@ rustPlatform.buildRustPackage { useNextest = true; + cargoTestFlags = [ + # Don’t build the `gen-protos` build tool when running tests. + "-p" + "jj-lib" + "-p" + "jj-cli" + ]; + env = { # Disable vendored libraries. ZSTD_SYS_USE_PKG_CONFIG = "1"; |