diff --git a/src/libstore/storeexpr.cc b/src/libstore/storeexpr.cc
index e11cd5bfe55b096284901c7ceb8dc05d6dd0ffe6..45b5af055a9b02f192418f39fbaab55461385f78 100644
--- a/src/libstore/storeexpr.cc
+++ b/src/libstore/storeexpr.cc
@@ -15,7 +15,7 @@ Path writeTerm(ATerm t, const string & suffix)
     Hash h = hashTerm(t);
 
     Path path = canonPath(nixStore + "/" + 
-        (string) h + suffix + ".nix");
+        (string) h + suffix + ".store");
 
     if (!isValidPath(path)) {
         char * s = ATwriteToString(t);