From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id uGQKKWi5L2JiNwAAgWs5BA (envelope-from ) for ; Mon, 14 Mar 2022 22:53:44 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id gDrtJWi5L2LPWgEAauVa8A (envelope-from ) for ; Mon, 14 Mar 2022 22:53:44 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 4F6FE3CB5B for ; Mon, 14 Mar 2022 22:53:44 +0100 (CET) Received: from localhost ([::1]:60836 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nTsdL-0005hi-9d for larch@yhetil.org; Mon, 14 Mar 2022 17:53:43 -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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1647294824; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=VzkW+RpHsYH58LnVYAJRFCZ+Kljy1hlzckTCHCHPRIw=; b=Qd50WaPOHptF6C9BhRJywQ9s5eu4e2s4kEWkTQ/JhkngGYh+8k03AucE1S5wfVPbbnpiVG UacDullM4ZJEh5TLWaR2KHhw6daJV66tSvaW3b8B2DYKeACE/MI/2KEmRzPcFLAjs6sbD+ vTiayGGkkQv8fOFKqN8EyyStuANJmvIvHjbgboINhbOytgNmVA5EJwRJLloEM1vlGfklR7 59+0nfwFA1Vd4dzwpsKu9IJ1NWBlEJh0rjivpHxAUhJZJbcanX0J3Avm7FWoim1g+IZsdJ Gjz67Y7ai9ZBlynVUjwJtCzSd68dzpBdoTm1yR7gGTbEoFScTMxfmNjQ/7adtg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1647294824; a=rsa-sha256; cv=none; b=JtqbjxkhTSXmCKi6FInuVcGlBb5/BepojFW34uIFM7MfeRbYfXD8nchHn4ksxmoJbzciie pb3DCuXNmwE2Dqqx57fXluORUxxWHib+KK1f1F5B4INN/q2GvYeODdEDvsfcYJH2VdxmKl WIbvD54oXyFtzZyvcydZtqJY3xSAxOflu4/k9vaXklWSrsQk3dSsUR+9UBPC5y9ow/JXOa a7ycE+ME1z+XAWcY6mjlOi99SnYxIePNAYUcHxPFMoU7dCmf3D2G2I7QiQ17haOhAxoBhz RMucoIEbJGtQiBD2xX0tsZZYHkWfbWXN829bkwXOu3dPOpSKBDoW/BJldH+01Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=kwEkFz6K; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.38 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=kwEkFz6K; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 4F6FE3CB5B X-Spam-Score: -3.38 X-Migadu-Scanner: scn0.migadu.com X-TUID: 6a6m/T/z1GLb 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 -- 2.34.0