diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index 52cad79e677b29131dd4025c61ffcb767ceca6f6..09aff10cbac6e582fa23975bbb5c5d2f8eb3e278 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -4621,6 +4621,7 @@ (define-public ocaml-ppx-typerep-conv
               (uri (git-reference
                      (url "https://github.com/janestreet/ppx_typerep_conv.git")
                      (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
               (sha256
                (base32
                 "0a13dpfrrg0rsm8qni1bh7pqcda30l70z8r6yzi5a64bmwk7g5ah"))))