From patchwork Thu Oct 6 16:36:09 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Tournier X-Patchwork-Id: 1013 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 B3F0127BBEA; Thu, 6 Oct 2022 18:59:37 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, 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 7B4C027BBE9 for ; Thu, 6 Oct 2022 18:59:37 +0100 (BST) Received: from localhost ([::1]:54064 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ogV9k-00038d-Kj for patchwork@mira.cbaines.net; Thu, 06 Oct 2022 13:59:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38426) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ogTrq-0004Rr-Rg for guix-patches@gnu.org; Thu, 06 Oct 2022 12:37:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:34290) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ogTrq-0001gf-Gu for guix-patches@gnu.org; Thu, 06 Oct 2022 12:37:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ogTrp-0002UM-Nh; Thu, 06 Oct 2022 12:37:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#58339] [PATCH 0/2] Add simple Guix extensions as example Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: efraim@flashner.co.il, guix-patches@gnu.org Resent-Date: Thu, 06 Oct 2022 16:37:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 58339 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 58339@debbugs.gnu.org Cc: zimoun , Efraim Flashner X-Debbugs-Original-To: guix-patches@gnu.org X-Debbugs-Original-Xcc: Efraim Flashner Received: via spool by submit@debbugs.gnu.org id=B.16650741869516 (code B ref -1); Thu, 06 Oct 2022 16:37:01 +0000 Received: (at submit) by debbugs.gnu.org; 6 Oct 2022 16:36:26 +0000 Received: from localhost ([127.0.0.1]:33366 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ogTrG-0002TQ-EX for submit@debbugs.gnu.org; Thu, 06 Oct 2022 12:36:26 -0400 Received: from lists.gnu.org ([209.51.188.17]:60056) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ogTrC-0002TF-Vx for submit@debbugs.gnu.org; Thu, 06 Oct 2022 12:36:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40282) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ogTrB-0003jS-N6 for guix-patches@gnu.org; Thu, 06 Oct 2022 12:36:22 -0400 Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]:43602) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ogTrA-0001ZZ-2M for guix-patches@gnu.org; Thu, 06 Oct 2022 12:36:21 -0400 Received: by mail-wr1-x42e.google.com with SMTP id n12so3526537wrp.10 for ; Thu, 06 Oct 2022 09:36:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date; bh=6GlKL7RywGZIWrlLG8HAB5EMiaRYsKgELTDPjeNYbB8=; b=YP5gCC6Fs0rd0jimy8bq+zagFFe30DjeG5JyMdLtMrvc+YJU5CDrX5lF/1aRn90JXt MXU5ovuH0QVnX1ZZ22ajBMyH+1WeBkz+EUWua6GwcNQLEGjNryzAU9ctnCwOOCDKWxTh ZgAmxkPtj5HPybka9B8+MA9QtOHVsoE2Q9Kgu5RxKQEoZILcq7ofRqjAcHrQSYjcuIus J7XElfkgHu7EBABgQpB6hem/9V7Hr4sS9nBYT6dLx5xvOmGs3UEUFUH2dzwZT+k/oKSt GoJ8dbb4Y/jx5BgnDMSCaDVeeF/rrZmCgPMzHNjkOBqa+kBeq+5CLbvx5dot780hvR+O tS5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date; bh=6GlKL7RywGZIWrlLG8HAB5EMiaRYsKgELTDPjeNYbB8=; b=jpabtlnKBa6pJbdciyCLuqjNjSM1zo0xb+vodtTzTEiUGZvoKAFgjeCo5ky4Sj/IWk FxLF5DBPGXYSB9dIGng4xPkq4Jh0uptRuvVGze70ErM+NA64o2miM4exijvXgTVsdDGg Y/A3SrCNJJHZrbdK2WWIiLNpyETdtNIGp4LWnRgu6GzGiFoOIlhrN+UYitvCvcem4rPZ a5KdvzpE3lmvkMPfNOWYOYogCaZP+tiTzsTvQlRMWfO9FLH8Slm58GevCGrmq4U5MfrI Wec1bW2zdWzfDFGoTxiiXezri+T/ImHt94yqR0bJYStt9OnCH8Lv5RqfOWmFOydDGn5D wLRw== X-Gm-Message-State: ACrzQf0aOvOyUnZElkvMzHJv5j1eqXhHWZG/ysFx3wXpMePXFd8tIPhs MRVrLVasyHgKh5vg/QyVbwIQVJMRn8s= X-Google-Smtp-Source: AMsMyM5VDolKIxqzAKX9wVFbksLCY/0FjKwP0puRihtbQtGzTFxD8vM4v/Q7PoLfrwyEWUN9o/pF8Q== X-Received: by 2002:a5d:47a8:0:b0:226:f124:ad74 with SMTP id 8-20020a5d47a8000000b00226f124ad74mr615287wrb.18.1665074178205; Thu, 06 Oct 2022 09:36:18 -0700 (PDT) Received: from localhost.localdomain ([193.48.40.241]) by smtp.gmail.com with ESMTPSA id a22-20020a1cf016000000b003a531c7aa66sm5610109wmb.1.2022.10.06.09.36.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Oct 2022 09:36:17 -0700 (PDT) From: zimoun Date: Thu, 6 Oct 2022 18:36:09 +0200 Message-Id: <20221006163609.2280960-1-zimon.toutoune@gmail.com> X-Mailer: git-send-email 2.36.0 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42e; envelope-from=zimon.toutoune@gmail.com; helo=mail-wr1-x42e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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 Hi, Based on patch#57982 [1], here are two simple examples for extending Guix subcommands. Here are starter versions which will be improved. The first is based on a binary; I replaced 'git-send-email' by 'hello'. The second is based on a simple pure Guile module. Somehow, it is the first step to document Guix extensions as proposed at 10 years event [2]. For instance, it is not handy to manually tweak the %standard-phases of guile-build-system when maybe we could have guix-build-system (or whatever more relevant name, bikeshed open ;-)). Neither to tweak the native-inputs. 1: 2: Cheers, simon Efraim Flashner (1): gnu: Add guix-hello. zimoun (1): gnu: Add guix-example. gnu/local.mk | 1 + gnu/packages/guix-extensions.scm | 97 ++++++++++++++++++++++++++++++++ 2 files changed, 98 insertions(+) create mode 100644 gnu/packages/guix-extensions.scm base-commit: 5b42b64ea89564c58325d16d3d0f4a0a03ebae0f