From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 4IQDCzaiaWI25wAAbAwnHQ (envelope-from ) for ; Wed, 27 Apr 2022 22:06:14 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id WC04CzaiaWI4zwAA9RJhRA (envelope-from ) for ; Wed, 27 Apr 2022 22:06:14 +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 D733010063 for ; Wed, 27 Apr 2022 22:06:13 +0200 (CEST) Received: from localhost ([::1]:52320 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1njnvQ-0007KB-RU for larch@yhetil.org; Wed, 27 Apr 2022 16:06:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41840) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1njnuu-0007Jy-6F for help-guix@gnu.org; Wed, 27 Apr 2022 16:05:40 -0400 Received: from mail-ot1-x32d.google.com ([2607:f8b0:4864:20::32d]:36410) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1njnus-00083j-5p for help-guix@gnu.org; Wed, 27 Apr 2022 16:05:39 -0400 Received: by mail-ot1-x32d.google.com with SMTP id c17-20020a056830349100b00605ca7d1deeso1814504otu.3 for ; Wed, 27 Apr 2022 13:05:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=ApuDzroW6pM4ZIr8hjyglFc6OczpPtodIQDP9VA0eR0=; b=kQN54t30+nYND2L5FweV6aDJmNgftulw0GRjM/iyonsPX/+mBJ3U4i1oesv0KOlLgM +1gW8e4l1+cMDjIp9dv8fykxWkqUebwX8pmp/okOVhd39nM75sRJ1sZaxLMD7V5pwdFE cyw6yy2fTxpy2lcCRWWkAxcj14noaqcgIDUwUosKFuVaQv2kmAuFH+gctb7htpHln0n+ QiFFg0Hcr1Haujic6W+6kPnLkLdZqEL0dIUvRvQbv9wV/WaO1TW6Q5a0x88nwYheypFj GTku10rYaygCG08J8ZfJ7mfXCWa0dtWVc0gAe+amVwFb9oW1spvFSuwIH1QfE8MHDU5z K3Jg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=ApuDzroW6pM4ZIr8hjyglFc6OczpPtodIQDP9VA0eR0=; b=m7TvLdRX3dVUjp9Uzv+mxfYm+EB7zZ03GRdmbJRpmI1dec6/ymyS5x+/oV1P3NF1tc 9qmoqG4YVPzbXAkifX4nyB3QJmm5/Rqzhrd5VIh2l25tYqtq1q/+qwsSpkiyS3LotmPg 5KD75poJ5sMqbo2h6MZxwOShpxbLq4b7GXpoVAICoLObSJ0/yuQfO5OElMkkwe01HykI u0m2Rvv/CtnaSY4vEx3AE+KsZ1dSC299Pj4iEPpmdD55LJhnCqeZaL+TEf4JEsAoloIe av2pn+gk17A4KnQgRb3Qzv9+TEhA+b/anJehs0n7gjyUPhq+MXcHYm6MxrzPv/nNIrmA ycjA== X-Gm-Message-State: AOAM533vYdkwkP5OwZZJyAyf11l/n7J5UcNIelOY8isQUApmbBKc2YRE JVHi0xT8uMH6Sk29WuYWO42/j+/M4TJckV+JUn0BnQd86bI= X-Google-Smtp-Source: ABdhPJxD6RLMGBofmcQNJydYJuWr8CrmpfRzQjKB+AB05xRmMKttO/DtTw8Qc0b4mvYTzIq2plDMqYQ69pY2+0Z9Nt8= X-Received: by 2002:a05:6830:1bdc:b0:605:4911:733d with SMTP id v28-20020a0568301bdc00b006054911733dmr10378416ota.96.1651089936155; Wed, 27 Apr 2022 13:05:36 -0700 (PDT) MIME-Version: 1.0 From: =?UTF-8?Q?C=C3=A1ssio_Tavares?= Date: Wed, 27 Apr 2022 20:05:00 +0000 Message-ID: Subject: Packaging baby-steps To: Guix Help Mailing List Received-SPF: pass client-ip=2607:f8b0:4864:20::32d; envelope-from=cassio.ufg@gmail.com; helo=mail-ot1-x32d.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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_KAM_HTML_FONT_INVALID=0.01, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1651089973; 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: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=tAycJwOvsl8ZUBZ+2N/SWQuqRGVKbgfY7mt4X7pZj0Y=; b=KBFH0B4KIS+EJrCsx7gbL2nwjdiJ7qzTrP82W9YrW+Pte6+y6YtTR4zX8D+0QFk2mvc54O Yf2opKTsJzuc8Nd08wIeMyjvnmx/QUL+JkYYT0TFOKxfx9FBmcUnPD6zRCnAMntVrXclCN 4g+IonEEHqqS7X0JWqjOWD/t85R9wbsHTzJM3pUsPo3vU65aAseqUHesoKHd9JHfaefpvp 3hrLXJfqXblMfF1RJSiF6JAJfyxWrjPvVuHxexA9DXp0oDu+mr1axlS0Ah8v8CN3F/5y5V N+8k/KJjiFk6JPCkiORCYTHl4hWXj13ni8pCJ5QKdiZJo2IyCWwi5V6hHuZzRA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1651089973; a=rsa-sha256; cv=none; b=EjJC/XmeRUsmGLEwtC8HHFsqNfzZ2vbNzzNAqPKFpaaaUK8bV9n/C96zlfSFTtRDgFFhh7 3KexlbwbDBhC0GJAlC1Lx1tdyyJPm7dsrXk8goFYRcR3bbJHl8rzWygnQkc/9sk3VonxFg aYjyb2Fo8ynILSlkXQg4al3C7EEcTjF4tTDKVKvuhNXwh8JUVVctciDMGsbfbL5a9vaEnA I6uv2XsDq0dgh2vcQzbXAZQV7CXISGDZuklgy3+RktbASrKdLV+JitaC49soANX8mWj4rp 5oliQu1VEb1ClsLpKKwrK9+7Rwz0hLcz0liSUYy0sFvi6b+DySR3gj2XBhUIbw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20210112 header.b=kQN54t30; 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" X-Migadu-Spam-Score: 6.20 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20210112 header.b=kQN54t30; 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" X-Migadu-Queue-Id: D733010063 X-Spam-Score: 6.20 X-Migadu-Scanner: scn1.migadu.com X-TUID: WPW48fyOMGsd Hello! I'm new to Guix, and I chose to use it for the principles of it (linux-libre and such), but against a better judgement of my technical incompetence. So. A lot of things I was used to in more mainstream distros are not packaged here and, after reading the manual and learning about how I could write my own packages, and with `guix import` for short-cut, I decided to give it a try. Then another. Then another =E2=80=94 in all of them I failed miserably= , and couldn't make any sense of the log files=E2=80=A6 I let it go for a while, but then I thought that some packages should be easier to write than the ones I tried. So, I started looking around for what I could do, and I realised: there are no plugin managers for neovim. Then I went to GitHub, and looked at `*packer.nvim* `, and=E2=80=A6 =E2=80=A6is it f= easible? =E2=80=94 this is how `*packer.nvim*` is supposed to be installed on regular, imperative distros: *Step One:* issue this command: *git clone --depth 1 https://github.com/wbthomason/packer.nvim\ ~/.local/share/nvim/site/pack/packer/start/packer.nvim* *Step Two:* write a `*/path/to/neovim/plugins/lua/plugins.lua*` that contains: *-- Only required if you have packer configured as `opt`* *vim.cmd [[packadd packer.nvim]]return require('packer').startup(function() -- Packer can manage itself use 'wbthomason/packer.nvim'* * -- Configure other plugins* *=E2=80=A6* *end)* *Step three:* include this line =E2=80=94 `*lua require('plugins')*` =E2= =80=94 in the file `*init.vim*`, wherever it is. *My questions:* 1. *Step one* seems to be just a simple file download to an appropriate directory =E2=80=94 is that assessment correct? 2. If so, would it be hard to generalize this so that it can be installed either system-wide or per-user? I guess there is a Guix idioma= tic way to accomplish what the above git command is doing, right? 3. *Step two*, I imagine, should be easy if there isn't already a ` *plugin.lua*` file, right? What if there is? 4. Is it acceptable if the installation process doesn't look into the plugins directory-tree to try and automatically create entries for them = in `*plugin.lua*`? 5. Also, in *Step two*, the first line in `*plugin.lua*` is required only if a certain condition is met. Is it OK to leave it there if the condition is not met? 6. The problems in *Step three* seem to be the same as in *Step two*. Except that maybe it could be assumed that, since `*neovim*` is a dependency, the file `*init.vim*` would necessarily exist? 7. From what I could tell from `*packer.nvim*`'s repo, the only dependency is on neovim version 0.5 or later =E2=80=94 is there anything= else I would need to work on or check out? I will be grateful to anyone who helps me to write my first package... Regards, C=C3=A1ssio ----- Faculdade de Letras - UFG *=E2=80=9C* *Ou a gente se Ra=C3=B4ni, ou a gente se Sting**=E2=80=9D*