From mboxrd@z Thu Jan 1 00:00:00 1970 From: Amirouche Boubekki Subject: [PATCH] guix: scripts: Add --dependencies=PACKAGE commmand Date: Sat, 20 Jun 2015 18:45:44 +0200 Message-ID: <3f6db6fc414feca85cb1ba790362e3b9@hypermove.net> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54303) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z6Ltu-00019z-Nt for guix-devel@gnu.org; Sat, 20 Jun 2015 12:45:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z6Ltr-00073x-Iq for guix-devel@gnu.org; Sat, 20 Jun 2015 12:45:50 -0400 Received: from relay3-d.mail.gandi.net ([2001:4b98:c:538::195]:43047) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z6Ltr-00073l-97 for guix-devel@gnu.org; Sat, 20 Jun 2015 12:45:47 -0400 Received: from mfilter32-d.gandi.net (mfilter32-d.gandi.net [217.70.178.163]) by relay3-d.mail.gandi.net (Postfix) with ESMTP id 84661A80BB for ; Sat, 20 Jun 2015 18:45:45 +0200 (CEST) Received: from relay3-d.mail.gandi.net ([217.70.183.195]) by mfilter32-d.gandi.net (mfilter32-d.gandi.net [10.0.15.180]) (amavisd-new, port 10024) with ESMTP id cswMdLcEj-uR for ; Sat, 20 Jun 2015 18:45:44 +0200 (CEST) Received: from webmail.gandi.net (webmail1-d.mgt.gandi.net [10.58.1.141]) (Authenticated sender: amirouche@hypermove.net) by relay3-d.mail.gandi.net (Postfix) with ESMTPA id 37987A80B1 for ; Sat, 20 Jun 2015 18:45:44 +0200 (CEST) List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Guix Devel This is a first patch to request the interest and the feedback of the community to have something like that in guix and how it should be done. guix packacge --dependencies=PACKAGE That will output the dot program required to generate a graph with graphviz. The full bash line can be: guix package --dependencies=qsynth | dot -Tpng > qsynth-deps.png && icecat qsynth-deps.png There is a *bug*: I am using `find-packages-by-name` which returns several packages, but when the output is passed to graphviz only one of the package is drawn. There is also an "interactive" web output [1]. HTH, [1] http://www.hyperdev.fr/_drafts/guix-dependencies-in-sigmajs/sigmajs/ -- Amirouche ~ amz3 ~ http://www.hyperdev.fr