From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 2C1ZI4YXP2NHKQEAbAwnHQ (envelope-from ) for ; Thu, 06 Oct 2022 19:59:34 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id CO98IoYXP2MWYQEAG6o9tA (envelope-from ) for ; Thu, 06 Oct 2022 19:59:34 +0200 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 5747825A53 for ; Thu, 6 Oct 2022 19:59:34 +0200 (CEST) Received: from localhost ([::1]:54064 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ogV9h-00038d-HE for larch@yhetil.org; Thu, 06 Oct 2022 13:59:33 -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 Content-Transfer-Encoding: 8bit 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1665079174; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: 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=6GlKL7RywGZIWrlLG8HAB5EMiaRYsKgELTDPjeNYbB8=; b=mcWegT2ios4bL+szX0j2Ubgfm4D2yDjFE7So9eIYOD4BgN8qEefxvNfE4WAVJm5AL3I2IA ICJdWW9m8yi1jWy9m9f7njRrqJCwuuDmV+FQ1PyMQmpbjTIrDFhPY1WW/W7Y29C1LV6ZJo 2fa2CXX4yKVxbFgYFyfnMR1xqwghCttIaHIe/CZEkfmyfk4nsFYGWcXrl1E5jcUDFmS1Xa ZGzeXHzpegt1YDuuz6P8FR2l/AnZMWGa1v674wAQ4OrBf7YZ5V9tepTS4h0Px5fd07UVQx 8dzTzGBqNY+r6CVyjM7zgfVZ+ywSpG2Zl0kQ4/oaPP2euceDxLShw2x9lyVMOg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1665079174; a=rsa-sha256; cv=none; b=PbXwIcfoKDKDwesl8fN6ZQwqgzYWJtH/8mif/KlYtsZsKH11rYs7JqeimcfulV5CGXvyCA u2eEtfA/JmKmghguYaUPflEWXe0p1qzxYXX/o6DZa1PcIMKvd3nd//lx86qzpBVPc74Gsp IgKcSfgGMfanA/BIC98YV09RW1JVZpumyNgLVj//uTa5SHmq+o129Y7AGk38zb4ZLW1n4u eUAxWyJSQ3QB0ouZg4yIcFbaZcUZU93WaAkkx8SnbXE5jVzbpCZomzxF7Pc2Hihy47bWIQ TaUzMrV3SxSV7LZh0HAWp7R4yMt+z/tWJL9k57eNwwQkkDiwCOpW32RYhzG1ZA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=YP5gCC6F; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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: 7.43 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=YP5gCC6F; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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: 5747825A53 X-Spam-Score: 7.43 X-Migadu-Scanner: scn0.migadu.com X-TUID: AyqCZFk9Wryf 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 -- 2.36.0