diff --git a/guix/derivations.scm b/guix/derivations.scm
index b95849727b3247547c8868a5b9be9247a434bb48..f842d26be80b809c0a546e41319ccbd2df9bfe7f 100644
--- a/guix/derivations.scm
+++ b/guix/derivations.scm
@@ -658,8 +658,11 @@ (define derivation-hash            ; `hashDerivationModulo' in derivations.cc
                                 (make-derivation-input hash sub-drvs))))
                            inputs))
               (drv    (make-derivation outputs
-                                       (sort (coalesce-duplicate-inputs inputs)
-                                             derivation-input<?)
+
+                                       ;; Note: INPUTS is already the result
+                                       ;; of 'coalesce-duplicate-inputs'.
+                                       (sort inputs derivation-input<?)
+
                                        sources
                                        system builder args env-vars
                                        #f)))