From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id uKbbLkvx+l/BFAAA0tVLHw (envelope-from ) for ; Sun, 10 Jan 2021 12:21:31 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 6N2qKkvx+l9EfQAAbx9fmQ (envelope-from ) for ; Sun, 10 Jan 2021 12:21:31 +0000 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 32EC4940463 for ; Sun, 10 Jan 2021 12:21:31 +0000 (UTC) Received: from localhost ([::1]:33998 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kyZis-0000pZ-6e for larch@yhetil.org; Sun, 10 Jan 2021 07:21:30 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:45008) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kyZMX-0002vp-UC for help-guix@gnu.org; Sun, 10 Jan 2021 06:58:25 -0500 Received: from mail-pf1-x433.google.com ([2607:f8b0:4864:20::433]:38090) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kyZMW-0008Jr-Be for help-guix@gnu.org; Sun, 10 Jan 2021 06:58:25 -0500 Received: by mail-pf1-x433.google.com with SMTP id d2so9264087pfq.5 for ; Sun, 10 Jan 2021 03:58:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=1hIUxVPs/UzNfWPpMfs2tTNp7hwPu8R6CwiCwcvWRp4=; b=mynz5uJ0LBN06WozWGkWeuVnAiPDUJnEEo29feefYBE6PR7IKAb1EvA9C5tUKkmOP2 zVZiKOzNr6pQDSzhhUyFrG/6btDQoqN1HB4ly68HN+2wF4fw6euxSkJYZUK34tBFhhty eEtMWnagTNfX5vm1BD4mZ+H/Havff6O4UnusZ4gj0Ei4SsczGXjb5AsX305reEidKUpt T646dd8LiJxEt6N5PViXU53B6usi4snECvf1G70riiVDBF0M5MkKGqnfjoXwHglBT8ix LJyG0ULP35af1Cr49XNG8AGH+lLR1gsZo9xTZMTy7QYwmJS2M82//4OMbMn43QOfOa01 6w8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=1hIUxVPs/UzNfWPpMfs2tTNp7hwPu8R6CwiCwcvWRp4=; b=Sbdl+NpVHvZTb4rri1mpu+MJY0Dji0uus9geOk6C0ZbVkSsZ4kVdcDKubGRgEBhLIu mvl2oNSbOK/Xt83I7Ga1l3qeBsE+E+XdGgMFNmkWFIo5dPKSVImoereUGhBwMPAQMoQ9 T7q61g5n2bm3nZw9y/GLN6PegXGqvJqrV2Ic2fuyQl/+PGOoYzIbNbMfK6I+s89A9g9j 6f/NK+QUTbzXFMqybOb5m1HdzcP7/7J29WzjFzKGzkFMlvwT2DBlu5h/XGrkAgs7BtSG 7++gCFv6Q20MipTbflg1e0ry5XswAS+0EbSFc4U5pWdGpe8fR/1oDFhIEvwg7EbMCBoZ wtzA== X-Gm-Message-State: AOAM5321JVmJ78vRHGowlJc9eN9vTSIX39SIe1LmiwRT3oveIwH2EiRU n2AB/w9Fa3wEKMOQD1b9pruQtnAq+b4cywm3GtFs2UQkxMs= X-Google-Smtp-Source: ABdhPJxYHTOeykWMII9pEcm4IMBjBL2yMYzUXNQzAkLzRDO+b5gm50s0bzkGJRx18FNGNUw8MCDXdSzXPF0paKmAXNU= X-Received: by 2002:a63:6241:: with SMTP id w62mr15514656pgb.67.1610279902369; Sun, 10 Jan 2021 03:58:22 -0800 (PST) MIME-Version: 1.0 From: miyamoto moesasji Date: Sun, 10 Jan 2021 11:58:11 +0000 Message-ID: Subject: How to replace a system package with a patched version in system configuration? To: help-guix@gnu.org Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2607:f8b0:4864:20::433; envelope-from=miyamoto.31b@gmail.com; helo=mail-pf1-x433.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-Mailman-Approved-At: Sun, 10 Jan 2021 07:21:13 -0500 X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -2.05 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=mynz5uJ0; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: 32EC4940463 X-Spam-Score: -2.05 X-Migadu-Scanner: scn0.migadu.com X-TUID: 47k/5BoGcVcJ I want to add my custom keyboard layout by patching xkeyboard-config so that this layout can be used in the rest of the system configuration. >From the manual on defining package variants it is clear how to define such a patched variant. However it is not at all clear to me how to use the various package-rewrite options in that manual page to make my system configuration use the patched xkeyboard-config. The only related question (https://lists.gnu.org/archive/html/help-guix/2018-07/msg00008.html) that I have been able to find managed to work around it. As I'm at a loss how to do this cleanly**: could someone give me a pointer on how to adapt the default desktop example (https://guix.gnu.org/manual/en/html_node/Using-the-Configuration-System.html) to add a patched system package such as xkeyboard-config? **) I can see that a work-around is to use a custom guix channel. However that seems a lot of additional work as it would require keeping the channel in sync. There must be a cleaner approach to achieve this.