summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--guix/derivations.scm7
1 files changed, 2 insertions, 5 deletions
diff --git a/guix/derivations.scm b/guix/derivations.scm
index f842d26be8..b95849727b 100644
--- a/guix/derivations.scm
+++ b/guix/derivations.scm
@@ -658,11 +658,8 @@ derivation at FILE."
                                 (make-derivation-input hash sub-drvs))))
                            inputs))
               (drv    (make-derivation outputs
-
-                                       ;; Note: INPUTS is already the result
-                                       ;; of 'coalesce-duplicate-inputs'.
-                                       (sort inputs derivation-input<?)
-
+                                       (sort (coalesce-duplicate-inputs inputs)
+                                             derivation-input<?)
                                        sources
                                        system builder args env-vars
                                        #f)))