summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--guix/scripts/package.scm2
1 files changed, 1 insertions, 1 deletions
diff --git a/guix/scripts/package.scm b/guix/scripts/package.scm
index bf39259922..2890d54ebc 100644
--- a/guix/scripts/package.scm
+++ b/guix/scripts/package.scm
@@ -324,7 +324,7 @@ version; if SPEC does not specify an output, return OUTPUT."
                sub-drv)))
 
   (let-values (((name version sub-drv)
-                (package-specification->name+version+output spec)))
+                (package-specification->name+version+output spec output)))
     (match (find-best-packages-by-name name version)
       ((p)
        (values p (ensure-output p sub-drv)))