From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id GH5tBp5GFWS5zgAASxT56A (envelope-from ) for ; Sat, 18 Mar 2023 06:05:34 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id qMxiBZ5GFWRZFwAAG6o9tA (envelope-from ) for ; Sat, 18 Mar 2023 06:05:34 +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 8642FDC0A for ; Sat, 18 Mar 2023 06:05:33 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20210112 header.b=TxJ1UpUg; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1679115933; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=hOP0puPYLF3A2+Vo325bN2lCI+P1UYuRwNgfMn+pEdc=; b=Ctwty1ejqRfw+57JEpVxBrpAzc7PokaUxoSCjkJmZdyest5tfWqFJYOuNGhUtn66Bzcbvo tekcCAYWsklIblxBu2Cb/dgt/iq3CPFzyvREAt/BYVcDLKv/Gm651qITWgboTpDOyCGvUN gE4ZNBSpAewBp6ebCKKiY+0TxhVSokHyTKne2ZRC4ra7S3MBzGQV0IFZ9X1Jwak1GuMWHX vW9KkoFyN3qe+uqyuX9wRRjzDm8pDNgGiIYcdFwXWbdsPHcz4wDbClY1r2Ag6kYEh8J8G/ FCCO+sVBHdmT6N7goFgkRqSPFVgxf5Kons+01Er4UjSUvysa6gkjqE6Nkt7i3A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20210112 header.b=TxJ1UpUg; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1679115933; a=rsa-sha256; cv=none; b=VwDbnBP5hYlH6Vk0wbOIZ+HFLofzdYoUGqTFBbVG+ZQz2RGohmuqGvbQ0Hj5L81OyQ8MF5 UuzLmRslfBjWHMKDTIz48FPddUzZ3ZTz1OhnoRciU6o8ToC+atkhB/YTOzJjECj/oDQIgu PBl65JgvKvLZMA6R5r3n3YuYMQF7I3ju9tKTmHwW4Ds2W3CtnCv5IRc1RnPBXJ8bIDYzfb lkZoSnAeGiMrTbt4lBaSy7j7lm8909+vKdXaehVOT7Z1G2FCsdztp8UUgQd/BLvDKL8Kg0 s3L3IsM8gjwgZTukin++zQ85KZlGJrnPg7XahfyEA1VKNdsECOCn40vQzBurqg== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pdOki-0002wB-Ki; Sat, 18 Mar 2023 01:05:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pdOkh-0002w2-1m for help-guix@gnu.org; Sat, 18 Mar 2023 01:05:11 -0400 Received: from mail-ua1-x936.google.com ([2607:f8b0:4864:20::936]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pdOkY-0002FS-Bd for help-guix@gnu.org; Sat, 18 Mar 2023 01:05:10 -0400 Received: by mail-ua1-x936.google.com with SMTP id s23so4662510uae.5 for ; Fri, 17 Mar 2023 22:05:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679115899; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=p5kicGaK31d8MYMXSwfSrRHZq/W5lQQ0zzugcqis4NA=; b=TxJ1UpUgDhg4ND4ibUpFluEYisFWbdR4slVy80FAEPOyOp8CBxTUJiGms3tr9ZP/kJ LY1PwNM1pPzw5sHh+zgJhsFZxFrxF9ssuzPRzjkj6LTj0ZjgRYb6Un7py8D3ZAft6HUb WpDyZAsTMMugIy7k5xIk/X+EV1VoZ6QqiKdRIWNlzB5Gnz+PM8rlGGI1fpNTCKHjbgsv xMM/kApkJGI4EUqMoXCMGD86/6Czh4HtagHroBr6zeuz3jXkajpJftz19lVgByvNypaV 3Li3etuGNQQ6xPJQpmY0jKQggMVvGcoqSAywMjDdCDavRP/EiPCrqPSF+VetMg8WWiNM dvSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679115899; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=p5kicGaK31d8MYMXSwfSrRHZq/W5lQQ0zzugcqis4NA=; b=hn/GCqUYp0lFevYjeukPkEE8EZ5bnLKbvGUe8ZKSseVnpqpfTD6yYsMT/q8VDm2d7Q /NYEyit9fBGrN+jgn5fpkhaUKRNJ/Uhdv94uclaP2ILUEQG/+a08xAiDXy5Z5imjEqPt oUqDnz+4IgfXU25dKYslLbv9MkKd0BVHkw6c9UJ+el4wx6254QvRycBhJNaXmLKrmC/Y 4wZUIBUn6OU3Kw3CzuGFt14qwBBOltF6rZxVX5eqP/zAR8vhnXTeqLb/j1x4YJvOMUN1 AGXBrqMf53Kgi8mfEqJL8+prnO8TLbb+vbsA+IKAWKmKANQCPJvXgsiJ2Yqag2al9Zv8 ksGg== X-Gm-Message-State: AO0yUKVg8ydQbi6ES5kfLi+j1K/2RrRCuK0M+5DAeAs0XtoHwhNlbgiT ALgk3TmyAsQmytNOKJFUcs+ETbwt36L508wpCPNfJWMIfzPXEA== X-Google-Smtp-Source: AK7set/rGZN/Vv32rsLtN0vr4JmqW6CskVbQ6bcsf5mUoELfjhkvd6yRJHtufeMgITkIY6qO2hDHDNqSvqrX9O/OeMY= X-Received: by 2002:a1f:17cd:0:b0:41d:acb5:6c1c with SMTP id 196-20020a1f17cd000000b0041dacb56c1cmr458925vkx.2.1679115899613; Fri, 17 Mar 2023 22:04:59 -0700 (PDT) MIME-Version: 1.0 From: Rodrigo Morales Date: Sat, 18 Mar 2023 00:02:27 -0500 Message-ID: Subject: Newbie: How to define a package that install files to ~/.config? To: help-guix@gnu.org Received-SPF: pass client-ip=2607:f8b0:4864:20::936; envelope-from=moralesrodrigo1100@gmail.com; helo=mail-ua1-x936.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=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 Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: X-Migadu-Queue-Id: 8642FDC0A X-Spam-Score: -1.25 X-Migadu-Spam-Score: -1.25 X-Migadu-Scanner: scn0.migadu.com List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-TUID: q1Qm4H7AqpQg Table of Contents _________________ 1. What I'm trying to do 2. What I've tried 3. The problem 4. The question Newbie: How to define a package that creates files in ~/.config? 1 What I'm trying to do ======================= I want to define a package that downloads a file from a git repository and puts the file under a directory in `~/.config/' (specifically, `~/.config/ibus/rime/') 2 What I've tried ================= I've defined a module containing the definition of a package that tries to accomplish that goal. It uses `install-file' to copy the downloaded files to the desired location (please see code block below) ,---- | cat ~/my/packages/rime.scm `---- ,---- | (define-module (rime) | #:use-module (guix licenses) | #:use-module (guix packages) | #:use-module (guix gexp) | #:use-module (guix build-system trivial) | #:use-module (guix git-download)) | | (define-public rime-wubi | (package | (name "rime-wubi") | (version "1.0") | (source (origin | (method git-fetch) | (uri (git-reference | (url "https://github.com/rime/rime-wubi") | (commit "f1876f08f1d4a9696395be0070c0e8e4353c44cb"))) | (file-name (git-file-name name version)) | (sha256 | (base32 | "1d9y9rqssacria9d0hla96czsqv2wkfm6z926m1x269ryv96zxvk")))) | (build-system trivial-build-system) | (arguments | (list | #:modules `((guix build utils)) | #:builder | #~(begin | (use-modules (guix build utils)) | (chdir (assoc-ref %build-inputs "source")) | (install-file "wubi86.dict.yaml" (string-append #$output "/.config/ibus/rime")) | (install-file "wubi86.schema.yaml" (string-append #$output "/.config/ibus/rime"))))) | (synopsis "Wubi86 schema and dictionary for RIME") | (description "This package contains a dictionary and a schema definition for the 86 | version of Wubi, a shape-based input method for Chinese characters.") | (home-page "https://github.com/rime/rime-wubi") | (license lgpl3))) `---- The package is installed without no problems. ,---- | export GUIX_PACKAGE_PATH="$HOME/my/packages" | guix package -i rime-wubi `---- ,---- | The following package will be installed: | rime-wubi 1.0 | `---- ,---- | echo $? `---- ,---- | 0 `---- 3 The problem ============= However, the files `wubi86.dict.yaml' and `wubi86.schema.yaml' are installed in `~/.guix-profile/.config/ibus/rime' (see code block below) ,---- | find -L /home/rdrg/.guix-profile/.config `---- ,---- | /home/rdrg/.guix-profile/.config | /home/rdrg/.guix-profile/.config/ibus | /home/rdrg/.guix-profile/.config/ibus/rime | /home/rdrg/.guix-profile/.config/ibus/rime/wubi86.dict.yaml | /home/rdrg/.guix-profile/.config/ibus/rime/wubi86.schema.yaml `---- Those files don't appear in `~/.config/ibus/rime' (the location I want them to exist in) ,---- | find ~/.config/ibus/rime `---- ,---- | /home/rdrg/.config/ibus/rime | /home/rdrg/.config/ibus/rime/default.custom.yaml `---- 4 The question ============== How to define a package that install files to any directory under `~/.config/'?