about summary refs log tree commit diff
path: root/pkgs/by-name/ju
diff options
context:
space:
mode:
authorEmily2024-09-04 20:51:44 +0100
committerEmily2024-09-05 08:10:09 +0100
commitf3c19826060547ae54f16c0dd1883079a6390325 (patch)
treea4776e510b44d487a4d7c7b194452720b1276132 /pkgs/by-name/ju
parentb91e47c585aeee001fa41ea8b7582c6347bb8ba1 (diff)
jujutsu: don’t build crates without tests in `checkPhase`
Diffstat (limited to 'pkgs/by-name/ju')
-rw-r--r--pkgs/by-name/ju/jujutsu/package.nix8
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";