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 ms5.migadu.com with LMTPS id OFybOX97/mP4ygAAbAwnHQ (envelope-from ) for ; Tue, 28 Feb 2023 23:09:04 +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 UOGfOH97/mPEEAAAG6o9tA (envelope-from ) for ; Tue, 28 Feb 2023 23:09:03 +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 9AE9631BEF for ; Tue, 28 Feb 2023 23:09:03 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20210112 header.b=GuEW8gNc; 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=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1677622143; 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=VQF4fgKrKMamMYqFREsMpPVRFh20IZ3iYceFTVo4ujA=; b=tJKKY2r7DRuVv5X713/xLIdlLgvx0jrDQJiLRbKypN8GcBJoGYr7SvTPAV6xrLPRxAPhrH BVTNPipZToS89dr55rx1ERscsLPMvHIXZHChMTm2f0xTBB29+z9POK/M0rF9U3+0XHK/cZ VXBSA1w5QtP3pYD9Ku1ECfEgVAD7kaGYfWCzNiyzfs6w2BJl+0PXm71zprtQDXF1HnvMun ejj7hzxUCnd19pT02zeb8imx/k+P3RvNGeLWLMhu29ED3tWQTiKed3gPncHDhx1Twxze7z Y1iuiCwqIAFiuZRL1JLm3r/t2mTjwYbaYu1aoxK13iAwawPvILWJmTBtQGRF7w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20210112 header.b=GuEW8gNc; 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=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1677622143; a=rsa-sha256; cv=none; b=m7JtxMKgijAymAMV9gfVa8J0Z7ij+sFbHhL7Wncd+wz0o8E0amFtdPHD4OHuK2U6/rEO1O QP9wFJ8psA42dLC3ikjf1vomFeMBaWz7wxGCQ0PSJqIjMZKaoxQKcPddUnnqh/PvHBexkt dOTaVdISfl0c98lCuoFXtC3wAfLDksYRIS+ch3UORcCFbFe1h+H4pkNnain6vcf8fyPTrn gezqaNmIxQgbE2DNFHY7M60uSlU67IiCLx//BCbJUogmkrmA7k0Icc2pKLUCeCBY2a+G4A IdNsfpWZs1Qm71DbhrtzO58eInhH6hiHN05Tfraq8rfS23eHH1mQEu46qmjAfg== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pX89B-0001ii-0l; Tue, 28 Feb 2023 17:08:33 -0500 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 1pX89A-0001gT-6l for help-guix@gnu.org; Tue, 28 Feb 2023 17:08:32 -0500 Received: from mail-vs1-xe35.google.com ([2607:f8b0:4864:20::e35]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pX897-0006c8-VG for help-guix@gnu.org; Tue, 28 Feb 2023 17:08:31 -0500 Received: by mail-vs1-xe35.google.com with SMTP id s1so17310664vsk.5 for ; Tue, 28 Feb 2023 14:08:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1677622108; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=ETrYW4hGrzgPV+PabLBNOYZpzxnX00W7Yv0oXXv5A7k=; b=GuEW8gNcH/EGRZa6kuzBlKOGiM4W+yDFO6+jtnUTQyIbtApVD36r4ElyML9/ltpmSf O/u2+5TwZJz0qJnbjAZBi74OSALFekdZ5cW/YyHGtnRgkaQ2Pv7UmaJ2Ks7AqJmAXLs5 Qy2tOfsQO03lKUT0+4iZwsSfqX/ajitTuTh5RBOioXQhg+B9XBCQaf4CgehbzMEkDeDz sSbBHWkqVfkAEmecFENUHRCyf5D1+xWuuxDlaEPPXOJk0JN2Xj2wL+3XkKseWLHDthTr xAJLNP4AYTcTTQ1B3ZDPPJaq+aZujSZXhU+G4VxuiFRBC5okKNMRCmE00QQFMhXKThbY mc7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677622108; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=ETrYW4hGrzgPV+PabLBNOYZpzxnX00W7Yv0oXXv5A7k=; b=gdbBLNM1dpnFFT+8SVMDV8dBHbkZsferIamhp9tBxiAXDhNoS47+pJ3d6NXjRjtinh kKt23hQu3KXyQQEP0DNHMWP35W7edOsU2odW3LXmuUow3e+5s0NJl/g87GhjSOsCZYno /2gjeabu3oWNJeeRsMHu+98oQEAEjo7U2zFRE4xXYiL2F4T5qA9suB6YVNsBEzL26gSR L8K9g65IvlQ+FkoiA2wx0Iv05AFz77Z85UWBnAhzBFUyQOjRIHotQgQMdroH2yl+8BOW TGOv5O4H/ep/pKf5peBkTLL5MTNUStaD11cHTWFDUJxLdwtn/RBOMebeI3C3uhmLLPWS r79Q== X-Gm-Message-State: AO0yUKXHWm/FtHvlAQU3szTui+dNWrtxfY2TQV1i0JRvlQthPQ1YQuSo D0579QucRnGfOYvqMOcxu2rZrn6Pt9RMgiuLQnHUJI9M+TE= X-Google-Smtp-Source: AK7set+BNQ5KuPyPJoBMNJCUFNgJHjr5LCMMP/oeMW5ysXl7/4/ndQps6XZuy4Tg9DY0gpGM1hgd7JQ790+VwT4FWdA= X-Received: by 2002:a67:f24e:0:b0:402:9ba2:bc62 with SMTP id y14-20020a67f24e000000b004029ba2bc62mr3067435vsm.6.1677622108225; Tue, 28 Feb 2023 14:08:28 -0800 (PST) MIME-Version: 1.0 From: Rodrigo Morales Date: Tue, 28 Feb 2023 17:06:29 -0500 Message-ID: Subject: Newbie user: Feedback on custom package definition To: help-guix@gnu.org Received-SPF: pass client-ip=2607:f8b0:4864:20::e35; envelope-from=moralesrodrigo1100@gmail.com; helo=mail-vs1-xe35.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-Spam-Score: -2.39 X-Spam-Score: -2.39 X-Migadu-Scanner: scn0.migadu.com X-Migadu-Queue-Id: 9AE9631BEF 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: 2zny0tMRwRVJ Table of Contents _________________ 1. The context 2. The package I wrote 3. The questions 1 The context ============= Newbie user here. I'm learning how to write my own Guix packages. I've written the following package (please see next section). I have been able to successfully install it. However, I'm opening this thread so that any of you could give me some feedback as I'm not experienced with defining packages. I'm aware of Emacs being able to download packages from repositories through the functions defined in `package.el'. However, that package is not available neither in ELPA nor MELPA, so I thought defining a GUIX package for it would come in handy. 2 The package I wrote ===================== ,---- | (define-module (my-simple-package) | #: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 my-simple-package-org-recoll | (package | (name "my-simple-package-org-recoll") | (version "1.0") | (source (origin | (method git-fetch) | (uri (git-reference | (url "https://github.com/alraban/org-recoll") | (commit "1e21fbc70b5e31b746257c12d00acba3dcc1dd5c"))) | (file-name (git-file-name name version)) | (sha256 | (base32 | "09bixzl8ky7scsahb50wwkdcz335gy257m80z9rpqqhjy6q9023c")))) | (build-system trivial-build-system) | (arguments | (list | ;; Module that defines install-file. Read "(guix) Build | ;; Utilities" for more information. | #:modules `((guix build utils)) | #:builder | #~(begin | (use-modules (guix build utils)) | (chdir (assoc-ref %build-inputs "source")) | (install-file "org-recoll.el" | (string-append | #$output | "/.config/emacs/libs"))))) | (synopsis "My synopsis") | (description "My description") | (home-page "https://example.org/") | (license gpl3+))) `---- The package I wrote downloads an Emacs package from a git repository and saves it into a directory ,---- | guix package -i my-simple-package-org-recoll | echo Exit code: $? `---- ,---- | The following package will be installed: | my-simple-package-org-recoll 1.0 | | substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0% | substitute: updating substitutes from 'https://bordeaux.guix.gnu.org'... 100.0% | The following derivations will be built: | /gnu/store/zm9hs6wp6v24qy8cr27dgh6ajfixirdf-profile.drv | /gnu/store/iqxb2m5lz7k0mj8gklnrxg01q5572w6w-my-simple-package-org-recoll-1.0.drv | /gnu/store/a29ymip131j67wq2rhzf9lr9kidqk7fq-my-simple-package-org-recoll-1.0-checkout.drv | | building /gnu/store/a29ymip131j67wq2rhzf9lr9kidqk7fq-my-simple-package-org-recoll-1.0-checkout.drv... | building /gnu/store/iqxb2m5lz7k0mj8gklnrxg01q5572w6w-my-simple-package-org-recoll-1.0.drv... | building CA certificate bundle... | listing Emacs sub-directories... | building fonts directory... | building directory of Info manuals... | building profile with 2 packages... | Exit code: 0 `---- By using the following commad, we can see that the file was installed under my home directory ,---- | find ~/.guix-profile/.config/emacs/libs | realpath ~/.guix-profile/.config/emacs/libs/org-recoll.el `---- ,---- | /home/rdrg/.guix-profile/.config/emacs/libs | /home/rdrg/.guix-profile/.config/emacs/libs/org-recoll.el | /gnu/store/67sw7m0ww2jw6vz0phhxrj1fphlqc414-my-simple-package-org-recoll-1.0/.config/emacs/libs/org-recoll.el `---- By using the following command, we can see the file structure under `/gnu/store'. ,---- | find /gnu/store/67sw7m0ww2jw6vz0phhxrj1fphlqc414-my-simple-package-org-recoll-1.0/ `---- ,---- | /gnu/store/67sw7m0ww2jw6vz0phhxrj1fphlqc414-my-simple-package-org-recoll-1.0/ | /gnu/store/67sw7m0ww2jw6vz0phhxrj1fphlqc414-my-simple-package-org-recoll-1.0/.config | /gnu/store/67sw7m0ww2jw6vz0phhxrj1fphlqc414-my-simple-package-org-recoll-1.0/.config/emacs | /gnu/store/67sw7m0ww2jw6vz0phhxrj1fphlqc414-my-simple-package-org-recoll-1.0/.config/emacs/libs | /gnu/store/67sw7m0ww2jw6vz0phhxrj1fphlqc414-my-simple-package-org-recoll-1.0/.config/emacs/libs/org-recoll.el `---- 3 The questions =============== + What changes would you do to improve the definition of the package that I wrote? + Do you manage your Emacs packages with GUIX? Could you briefly describe your workflow or point me to references/documentation?