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 ms9.migadu.com with LMTPS id UDKMBVmsIGS+eQAASxT56A (envelope-from ) for ; Sun, 26 Mar 2023 22:34:33 +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 4KzNBFmsIGQm9AAAG6o9tA (envelope-from ) for ; Sun, 26 Mar 2023 22:34:33 +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 9AB9D20D18 for ; Sun, 26 Mar 2023 22:34:32 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=disroot.org header.s=mail header.b=eKpd+4WV; 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"; dmarc=pass (policy=reject) header.from=disroot.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1679862872; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:content-type:content-type: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=DTRMyHB82tlrOq9Ij05jeaTcu41n+QLaczfwjqhXwEE=; b=UHMxChWnQUF6RTlXXimAfzX5DuupLlfH0DiWH0q04kATklyQZNS4iqvdGgfLMCzdGhJqOe ZokblSvjF6xObVogVjAvSCii2QR6Oisj2kYYsONomzb/qmyzYos9Stafntcnr7jKmadEva fP+jWosDFnyMIVQ3dN9sN7apKqX3Ij+SUPJi1VcLy6uqFywAcaBIpYCSYctJ6sRlWcYVLu vaypTp6BSNi47wuOhR9l72UmL5nhqzgw0ut/s9qqHEUxQrsW68ksUWDraIsFkUdo5U/4Uk GIdjQmUkO+dkipvOrfvzXhU3FDMcuQXVqxQIEQF24sJWNVeBhO8X8IDdP2FvDQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1679862872; a=rsa-sha256; cv=none; b=LMGJWcjvuJgyb16FjrfL+1LpVpkR9jOeg1KxRvrY5vZIkZIcGgNljMcMDPhBo+W4gI9Fms XAs6dYyKtn5CqUM1MGZp9cPPmGzYnLTQ4aTdn5MBrmhuytAsDNHAUNSGAbsPAilx/WFnjT B3n2UvYlcFHfDzN8fquopjw7Lr3pngnCo8Sl6XB/bjxaR2Fax+Oba4Dv6PNm1VezQrlEYC BShjTL7wvRHPYGeKLnBIOnHaj+0yBejBQbyOYwo/wn8UdPO2O8JXYVS0mtkU2GdpiNXbHe 1S1FvaSf6BduxXdXXcc5N1z9osLHDe+f0ZiKSbgakQrwsExGkzz9AkaBL96iOg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=disroot.org header.s=mail header.b=eKpd+4WV; 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"; dmarc=pass (policy=reject) header.from=disroot.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pgX3w-0006KD-QF; Sun, 26 Mar 2023 16:34:00 -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 1pgX3u-0006Je-0C for help-guix@gnu.org; Sun, 26 Mar 2023 16:33:58 -0400 Received: from knopi.disroot.org ([178.21.23.139]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pgX3r-0001ss-Rv for help-guix@gnu.org; Sun, 26 Mar 2023 16:33:57 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 1CA8E444E2; Sun, 26 Mar 2023 22:33:52 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LiOH82kTjXED; Sun, 26 Mar 2023 22:33:50 +0200 (CEST) Content-Type: multipart/signed; boundary=80ec32f716fdbc673ea1a15d1d5c79bcf94c9a978b54f49ae20da519f9fe; micalg=pgp-sha512; protocol="application/pgp-signature" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1679862830; bh=+nx7nxp/3vBY0eaisS8RhvlNLe3XFOjjV8+3x4coMWo=; h=Date:Subject:From:To:References:In-Reply-To; b=eKpd+4WVw4XHjZdGFpXg56BMiypQF7Ny5i+azjtOiJSSWWPE0ldU7CO2O9hGEWurU DRwqLAvtMnOOjzxYUtNQD2IGbqz0cd1Bz3/M4XOxn8wImxpOOGepyt2Gk0vxLu7pb+ gRsehuorNtCgQwiqpgthHiqIPniLZLINLPOI1TMYA/WbK511DX85guGhsmhN31bdI0 7KMw53OvVwMY+EjPvXYvrgRGnoeEWyFz1NQKXaRfkN8SQzzmvSU+8g9NIDWQY25W3O kq0AS7gyk0VQWt9K5PolUd/BnuIC24YbSI1cyn5Z/T9BaKg4/PsmRmbQdz/NRHm6Jy NEcF18CHJ9j5g== Date: Sun, 26 Mar 2023 21:33:46 +0100 Message-Id: Subject: Re: Alternatives for defining package that install files to ~/.config/ibus/rime From: "(" To: "Rodrigo Morales" , References: In-Reply-To: Received-SPF: pass client-ip=178.21.23.139; envelope-from=paren@disroot.org; helo=knopi.disroot.org X-Spam_score_int: -19 X-Spam_score: -2.0 X-Spam_bar: -- X-Spam_report: (-2.0 / 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, MIME_HEADER_CTYPE_ONLY=0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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: 9AB9D20D18 X-Spam-Score: -4.53 X-Migadu-Spam-Score: -4.53 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: XKOqJETGT4vf --80ec32f716fdbc673ea1a15d1d5c79bcf94c9a978b54f49ae20da519f9fe Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Hi Rodrigo, To be clear, modifying RIME_DATA_DIR will not require a commitment to maint= aining the package; Guix doesn't have package maintainers. What you're doing with= the attached package seems like the best possible way. I've done a small revie= w of it so you don't have to revise it that much if/after you send it in to be a= dded. On Sun Mar 26, 2023 at 9:21 PM BST, Rodrigo Morales wrote: > ,---- > | (arguments > | `(#:tests? #f ; no tests > | #:configure-flags > | (list (string-append "-DRIME_DATA_DIR=3D" > | (assoc-ref %build-inputs "rime-data") > | "/share/rime-data")) > | #:phases > | (modify-phases %standard-phases > | (add-after 'unpack 'patch-source > | (lambda _ > | (substitute* "CMakeLists.txt" > | (("DESTINATION....RIME_DATA_DIR..") > | "DESTINATION \"${CMAKE_INSTALL_DATADIR}/rime-data\"")= ) > | #t))))) If the RIME_DATA_DIR here is a use of the variable changed with -D above, surely you don't need MODIFY-PHASES? (Also: don't put a #t here, and use the gexp-style for ARGUMENTS; %OUTPUT, %OUTPUTS, and %BUILD-INPUTS are all deprecated: (arguments (list #:tests? #f ;no tests #:configure-flags #~(list (string-append "-DRIME_DATA_DIR=3D" #$(this-package-input "rime-data") "/share/rime-data")) =E2=80=A6)) > | (inputs > | (list gdk-pixbuf > | glib > | ibus > | libnotify > | librime > | rime-data)) > | (native-inputs > | `(("cmake" ,cmake-minimal) > | ("pkg-config" ,pkg-config))) Make sure to use the new inputs style (just a LIST with packages, like in I= NPUTS). > | (description "@dfn{ibus-rime} provides the Rime input method engi= ne > for > | IBus. Rime is a lightweight, extensible input method engine supporti= ng > | various input schemas including glyph-based input methods, > romanization-based > | input methods as well as those for Chinese dialects. It has the > ability to > | compose phrases and sentences intelligently and provide very accurate > | traditional Chinese output.") > | (license gpl3))) By the way, this description uses too much marketing-speak IMO. -- ( --80ec32f716fdbc673ea1a15d1d5c79bcf94c9a978b54f49ae20da519f9fe Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEE6Vh10NblKE5doNlW7ImHg/nqI20FAmQgrCsACgkQ7ImHg/nq I20KGgwAxWmvO5+5camh9CD7Qj/l31admKVp1xi9se00BoKuwzZ7yXgLmlXbcLP7 5xHtIudsD4SAYLlx+dfR2RZ04yRYlIrJ6bOEGnrNcN8mI9s7cLOwGs4zGx6OyEQL O/AS7jtvtZibbYl+653XgCBrqcyCfNAZ1HrUjgZEOt3JRWryELLh7OZAYUBq1Jei d5/czwtRx+kCvsvcnO4ZL6L7YMIRc9nuKmu1U+2L/RjdOA/cQxiHiTV9t/ENZyB7 r7QLhQT2V3FNZok013hq5+rtWvQIXkIGoi+TKY0f++Z7f7a4cJdLqR15jKaFr7R5 ozu1vM2AV3rzfqB0QAkUvgTrZTbuuFyqOkEwl4TPUsCAs80xn3bknleCcgABHOxa miaqb5RsmQ5own4Je58X3thXZ4ZjHb+5viw+9r4pj23CTS0aeYA7d7JnzqB6Npbu ABtIAYhj92Uv+zGO0V02C/QnVTmRjtK7S2xkW7fr31GmFNno/+iylIg3j3087dLj d4pqxfF/ =bkva -----END PGP SIGNATURE----- --80ec32f716fdbc673ea1a15d1d5c79bcf94c9a978b54f49ae20da519f9fe--