diff --git a/tests/build-hook.nix.in b/tests/build-hook.nix.in
index 920564955a537421754bc1c59e80f90abae75d3c..b38077e7f70bbb7d245c8f2c27e5f15242caf152 100644
--- a/tests/build-hook.nix.in
+++ b/tests/build-hook.nix.in
@@ -1,21 +1,21 @@
 let {
 
   input1 = derivation {
-    name = "dependencies-input-1";
+    name = "build-hook-input-1";
     system = "@system@";
     builder = "@shell@";
     args = ["-e" "-x" ./dependencies.builder1.sh];
   };
 
   input2 = derivation {
-    name = "dependencies-input-2";
+    name = "build-hook-input-2";
     system = "@system@";
     builder = "@shell@";
     args = ["-e" "-x" ./dependencies.builder2.sh];
   };
 
   body = derivation {
-    name = "dependencies";
+    name = "build-hook";
     system = "@system@";
     builder = "@shell@";
     args = ["-e" "-x" ./dependencies.builder0.sh];