From patchwork Mon Mar 14 21:50:15 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Ludovic_Court=C3=A8s?= X-Patchwork-Id: 662 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 7B0F727BBEA; Mon, 14 Mar 2022 21:53:46 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 3C6B327BBE9 for ; Mon, 14 Mar 2022 21:53:46 +0000 (GMT) Received: from localhost ([::1]:60836 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nTsdN-0005hi-Dp for patchwork@mira.cbaines.net; Mon, 14 Mar 2022 17:53:45 -0400 Received: from eggs.gnu.org ([209.51.188.92]:53292) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nTsak-0001mV-Qk for guix-patches@gnu.org; Mon, 14 Mar 2022 17:51:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:52748) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nTsak-0000uK-IP for guix-patches@gnu.org; Mon, 14 Mar 2022 17:51:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nTsak-00032g-FC for guix-patches@gnu.org; Mon, 14 Mar 2022 17:51:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#54393] [PATCH 0/2] Add 'guix manifest' to "translate" commands to manifests Resent-From: Ludovic =?utf-8?q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 14 Mar 2022 21:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 54393 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 54393@debbugs.gnu.org Cc: Ludovic =?utf-8?q?Court=C3=A8s?= X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.164729463311639 (code B ref -1); Mon, 14 Mar 2022 21:51:02 +0000 Received: (at submit) by debbugs.gnu.org; 14 Mar 2022 21:50:33 +0000 Received: from localhost ([127.0.0.1]:46645 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nTsaH-00031e-3b for submit@debbugs.gnu.org; Mon, 14 Mar 2022 17:50:33 -0400 Received: from lists.gnu.org ([209.51.188.17]:60616) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nTsaF-00031T-03 for submit@debbugs.gnu.org; Mon, 14 Mar 2022 17:50:31 -0400 Received: from eggs.gnu.org ([209.51.188.92]:52932) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nTsaE-0001aN-Ko for guix-patches@gnu.org; Mon, 14 Mar 2022 17:50:30 -0400 Received: from [2001:470:142:3::e] (port=52416 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nTsaE-0000h4-Bc; Mon, 14 Mar 2022 17:50:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:Subject:To:From:in-reply-to: references; bh=VzkW+RpHsYH58LnVYAJRFCZ+Kljy1hlzckTCHCHPRIw=; b=kwEkFz6Kci0TAB aCTSzd1IDXm6Cw4TkTCFfrVdVvLqEzuP89SL3KwGkUjXxlN7MwFisiTG3f33THg98RepVMZ5d3vDY o6kbhGLkrSeTE8ndy1ef6yInbS5ZDagnIDecLNrxl5IgqYjxRFz4p0Gh25rYf0aWPfIEcHhcsKRO0 1vqS4qKOYKbTZz2q7ryezAV2eG4SmUhvnzWYsdRQQhx2VxcOuKEphW30faOZ0hk+UG4plRsgGK+/U GZGlO9jty4PGVTPBcCfg6CKk/SMwcZHXy+D1QtevP79TM/z7y2zXcHGQR3MQ7T7CDPrLl1NKjC4Us l3sKfGQsZddaFzeCKo+Q==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201]:53604 helo=gnu.org) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nTsa7-0008Cp-KI; Mon, 14 Mar 2022 17:50:30 -0400 From: Ludovic =?utf-8?q?Court=C3=A8s?= Date: Mon, 14 Mar 2022 22:50:15 +0100 Message-Id: <20220314215015.24435-1-ludo@gnu.org> X-Mailer: git-send-email 2.34.0 MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches Hello Guix! Writing manifests can be intimidating: in part because it’s not well documented, and in part because it’s always hard to start from a blank page. We have ‘guix package --export-manifest’ to help with that, but I realized that colleagues of mine often use ‘guix shell’ more than ‘guix package’, and ‘--export-manifest’ is awkward to use: $ guix shell a b c d --transform=whatever=else [env]$ guix package --export-manifest -p $GUIX_ENVIRONMENT I figured that instead of documenting this, we might as well provide a command that does it in one go: guix manifest a b c d --transform=whatever=else > manifest.scm Voilà! Thoughts? Next up: adding a “Writing Manifests” section. Ludo’. Ludovic Courtès (2): packages: Add 'package-unique-version-prefix'. Add 'guix manifest'. Makefile.am | 2 + doc/guix.texi | 146 +++++++++++++++++++++++++++++++- gnu/packages.scm | 21 +++++ guix/scripts/manifest.scm | 174 ++++++++++++++++++++++++++++++++++++++ guix/scripts/package.scm | 20 +---- po/guix/POTFILES.in | 1 + tests/guix-manifest.sh | 76 +++++++++++++++++ tests/packages.scm | 13 +++ 8 files changed, 434 insertions(+), 19 deletions(-) create mode 100644 guix/scripts/manifest.scm create mode 100644 tests/guix-manifest.sh base-commit: 857e5ab22292fe7c2ba5b9855c0829a2ef942d38