about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--tvix/nix_cli/Cargo.toml3
-rw-r--r--tvix/nix_cli/default.nix3
-rw-r--r--tvix/nix_cli/src/bin/nix-store.rs1
3 files changed, 5 insertions, 2 deletions
diff --git a/tvix/nix_cli/Cargo.toml b/tvix/nix_cli/Cargo.toml
index b1d1d339b45f..c0b85e56b89e 100644
--- a/tvix/nix_cli/Cargo.toml
+++ b/tvix/nix_cli/Cargo.toml
@@ -12,3 +12,6 @@ version = "3.2.0"
 
 [[bin]]
 name = "nix-store"
+
+[features]
+integration_tests = []
diff --git a/tvix/nix_cli/default.nix b/tvix/nix_cli/default.nix
index 7781daf6c5c6..5fbd61f0746c 100644
--- a/tvix/nix_cli/default.nix
+++ b/tvix/nix_cli/default.nix
@@ -3,6 +3,5 @@
 depot.third_party.naersk.buildPackage {
   src = ./.;
   doDoc = false;
-  # Tests invoke nix-store binary
-  doCheck = false;
+  doCheck = true;
 }
diff --git a/tvix/nix_cli/src/bin/nix-store.rs b/tvix/nix_cli/src/bin/nix-store.rs
index e1568fff73f0..8d008a414dc4 100644
--- a/tvix/nix_cli/src/bin/nix-store.rs
+++ b/tvix/nix_cli/src/bin/nix-store.rs
@@ -80,6 +80,7 @@ mod integration_tests {
     }
 
     #[test]
+    #[cfg_attr(not(feature = "integration_tests"), ignore)]
     fn test_nix_store_add() {
         let file_content = "I am a copied file";
         let mut tempfile = tempfile::NamedTempFile::new().expect("cannot create temp file");