graph: Use 'derivation-input-derivation'.
authorLudovic Courtès <ludo@gnu.org>
Sun, 23 Jun 2019 07:38:23 +0000 (09:38 +0200)
committerLudovic Courtès <ludo@gnu.org>
Thu, 27 Jun 2019 09:14:41 +0000 (11:14 +0200)
* guix/scripts/graph.scm (derivation-dependencies): Use
'derivation-input-derivation'.

guix/scripts/graph.scm

index 8fe81ad..2e14857 100644 (file)
@@ -254,8 +254,7 @@ GNU-BUILD-SYSTEM have zero dependencies."
   "Return the <derivation> objects and store items corresponding to the
 dependencies of OBJ, a <derivation> or store item."
   (if (derivation? obj)
-      (append (map (compose read-derivation-from-file derivation-input-path)
-                   (derivation-inputs obj))
+      (append (map derivation-input-derivation (derivation-inputs obj))
               (derivation-sources obj))
       '()))