From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:47581) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hfNx7-0000ov-Km for guix-patches@gnu.org; Mon, 24 Jun 2019 08:20:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hfNx4-0005Aa-BU for guix-patches@gnu.org; Mon, 24 Jun 2019 08:20:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:42148) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hfNx4-00059i-7h for guix-patches@gnu.org; Mon, 24 Jun 2019 08:20:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hfNx3-0003g2-V5 for guix-patches@gnu.org; Mon, 24 Jun 2019 08:20:01 -0400 Subject: [bug#36351] [PATCH 00/10] Add 'derivation-build-plan', improve (guix derivations) Resent-Message-ID: Received: from eggs.gnu.org ([2001:470:142:3::10]:47262) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hfNwL-0000i0-PK for guix-patches@gnu.org; Mon, 24 Jun 2019 08:19:18 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Date: Mon, 24 Jun 2019 14:18:57 +0200 Message-Id: <20190624121857.5818-1-ludo@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 36351@debbugs.gnu.org Hello Guix, This is the season cleanup of (guix derivations)! The initial motivation was to allow ‘show-what-to-build’ to do deal with builds of single derivation outputs, which became possible in commit f8a9f99cd602ce1dc5307cb0c21ae718ad8796bb. I ended up replacing ‘derivation-prerequisites-to-build’ with ‘derivation-build-plan’, which is both more flexible and simpler. That led me to change so that it would contain a instead of a derivation file name, which is more natural and helps for things like ‘derivation-build-plan’ that traverse the derivation graph (previously it’d have to call ‘read-derivation-from-file’, which would look up the derivation in ‘%derivation-cache’.) I wanted to change ‘guix build’ to support things like: guix build groff:doc but there are slight complications so I’ll punt on that for now. Thoughts? Ludo’. Ludovic Courtès (10): derivations: Add 'derivation-input'. derivations: Rewrite and replace 'derivations-prerequisites-to-build'. ui: 'show-what-to-build' uses 'derivation-build-plan'. graph: Use 'derivation-input-derivation'. derivations: now aggregates a . derivations: 'derivation' preserves pointer equality. derivations: 'build-derivations' can be passed derivation inputs. packages: 'specification->package+output' distinguishes "no output specified". ui: 'show-what-to-build' accepts derivation inputs. ui: 'show-derivation-outputs' accepts records. gnu/packages.scm | 8 +- guix/derivations.scm | 269 +++++++++++++++++++++++------------------ guix/scripts/graph.scm | 3 +- guix/ui.scm | 67 +++++----- tests/derivations.scm | 80 ++++++------ tests/grafts.scm | 16 +-- tests/packages.scm | 32 +++++ 7 files changed, 271 insertions(+), 204 deletions(-) -- 2.22.0