From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id x46XLjRR+l7FTgAA0tVLHw (envelope-from ) for ; Mon, 29 Jun 2020 20:38:12 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id yDAoKjRR+l4sIgAAB5/wlQ (envelope-from ) for ; Mon, 29 Jun 2020 20:38:12 +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 0AA929400C1 for ; Mon, 29 Jun 2020 20:38:12 +0000 (UTC) Received: from localhost ([::1]:41484 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jq0Xa-0000lW-Vu for larch@yhetil.org; Mon, 29 Jun 2020 16:38:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41462) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jq0XQ-0000kb-Mn for help-guix@gnu.org; Mon, 29 Jun 2020 16:38:00 -0400 Received: from mout01.posteo.de ([185.67.36.65]:60089) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jq0XM-0005Ca-VY for help-guix@gnu.org; Mon, 29 Jun 2020 16:38:00 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 36F34160062 for ; Mon, 29 Jun 2020 22:37:54 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1593463074; bh=IuAo65qzDYRJ61/rGxqzCBn24mHyepbR/SbKoPyAUjI=; h=Subject:To:Cc:From:Date:From; b=cub6OrVum+0/p2KI8BS2fow5Ph8iueaUhpinUgbPmBhOFHnx1ctxKd4TK3haLFcwm 6RUhHzz16lQV0G3Ap4pRHfdG9HcAvFoDX73dCwJqvrMFSmhzdFjDLrl4BHc2stxYYQ CowWAYZUqcbCgNKnSZApVFnm5F7TwUcTs7/lKqG6z25UKDCjh1ZO7o4PnTFr2V6hxw b2P8uN31uKB35iBoSnjhAx2NjaPpiSpiAGh7rjBZ/EW1HrpWPoV4GXzM0x6MZJIniB TR+vkZllQwVzMQvb3jDbzNqyNCJxdoBYrIvb12B9Qr4IkyvW67vEF9XtT821kNqAFV MThLj8yZgqldg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 49wfSd2Cmfz6tmN; Mon, 29 Jun 2020 22:37:53 +0200 (CEST) Subject: Re: Erlang + Emacs profile To: Ricardo Wurmus References: <3801410f-667e-9cac-74f3-d56a519adcc2@posteo.de> <871rm4mcm1.fsf@gmail.com> <8211be1b-21d0-36bb-c89d-a92581af594a@posteo.de> <86sgeeb6is.fsf@gmail.com> <87d05hoc29.fsf@elephly.net> From: Zelphir Kaltstahl Message-ID: Date: Mon, 29 Jun 2020 22:37:52 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Icedove/68.8.0 MIME-Version: 1.0 In-Reply-To: <87d05hoc29.fsf@elephly.net> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-US Received-SPF: pass client-ip=185.67.36.65; envelope-from=zelphirkaltstahl@posteo.de; helo=mout01.posteo.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/29 16:37:54 X-ACL-Warn: Detected OS = Linux 3.11 and newer X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action 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: , Cc: help-guix@gnu.org Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.de header.s=2017 header.b=cub6OrVu; dmarc=pass (policy=none) header.from=posteo.de; 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-Spam-Score: -1.71 X-TUID: +q3oYRiSAIuG Hi Ricardo! On 29.06.20 22:24, Ricardo Wurmus wrote: > Zelphir Kaltstahl writes: > >> I just did the edit thing and I am not sure how to then "upload" a >> package. But I will read the docs a little and will probably all clear up. > “guix edit” only opens the source file containing a package definition > in your editor. > > To contribute packages please see the Contributing section in the manual. > >>> The point is that Guix has a really large collection of Emacs packages: >>> >>> --8<---------------cut here---------------start------------->8--- >>> $ du -sh gnu/packages/*.scm | sort -nr | head -n5 >>> 908K gnu/packages/crates-io.scm >>> 884K gnu/packages/emacs-xyz.scm >>> 784K gnu/packages/cran.scm >>> 732K gnu/packages/python-xyz.scm >>> 636K gnu/packages/bioinformatics.scm >>> --8<---------------cut here---------------end--------------->8--- >>> >>> and if your needs is not there then "guix import elpa" eases the task >>> for adding it. :-) >> So if I understand this correctly, there are different channels for >> different types of packages, for example for Rust packages we have >> `gnu/packages/crates-io.scm` and for Emacs packages we have >> `gnu/packages/emacs-xyz.scm`. > No, these are not channels. These are all modules that are part of the > default channel called “guix”. > >> The command `guix describe -f channels` does not work for me: >> >> ~~~~ >> xiaolong@xlx200:~$ guix describe -f channels >> guix describe: error: failed to determine origin >> hint: Perhaps this `guix' command was not obtained with `guix pull'? Its version string is >> 36da62f1b9c78a2729658143a7df1845cd532afa. >> ~~~~ > “guix describe” will work when you use a “guix” that was obtained with > “guix pull”. It will usually be in ~/.config/guix/current/bin/guix. > >> I did another `guix pull` and `guix package -u` and this is after a >> fresh Guix package manager install and and installing the following >> packages: >> >> ~~~~ >> xiaolong@xlx200:~$ sudo -i guix package -I >> glibc-utf8-locales 2.31 out /gnu/store/z7a6sbvqzb5zapwpznmjkq2rsxil6i67-glibc-utf8-locales-2.31 >> >> xiaolong@xlx200:~$ sudo -i guix package -I >> glibc-utf8-locales 2.31 out /gnu/store/z7a6sbvqzb5zapwpznmjkq2rsxil6i67-glibc-utf8-locales-2.31 >> xiaolong@xlx200:~$ guix package -I >> guile 3.0.4 out /gnu/store/ah16zr8mmfkqy23rr7jy5a842ca1q9h1-guile-3.0.4 >> erlang 21.3.8.13 out /gnu/store/6x8ycgi8hv5rh8gq3vrdbcq5sh3qfq7i-erlang-21.3.8.13 >> emacs-ob-erlang 20180827-1.f1a8c66 out /gnu/store/czg6wqga0hvc57axbz1cjp892k5r8ybp-emacs-ob-erlang-20180827-1.f1a8c66 >> icecat 68.9.0-guix0-preview1 out /gnu/store/7qakza7zdiz57l5hldd8162324fwbw8s-icecat-68.9.0-guix0-preview1 >> libreoffice 6.4.4.2 out /gnu/store/swk410ahw9v4k0hjmsd4f33bqw5fdyqa-libreoffice-6.4.4.2 >> lyx 2.3.5.1 out /gnu/store/p7z5436jhgjlgdbx44np44vzjhrwi2ns-lyx-2.3.5.1 >> python 3.8.2 out /gnu/store/6sr11m4i1d3vbqlmbpzmfj1lihbc5iz4-python-3.8.2 >> rust 1.39.0 out /gnu/store/24pbvvdwaj9kbsdfi6kgxkvxkjayfz74-rust-1.39.0 >> openvpn 2.4.9 out /gnu/store/3rh4i3wbkdwkrmrxy30d3f3nbg6kdl02-openvpn-2.4.9 >> emacs 26.3 out /gnu/store/528p0v6gg5gx53jd0x52dmghb01bfhc5-emacs-26.3 >> glibc-utf8-locales 2.31 out /gnu/store/z7a6sbvqzb5zapwpznmjkq2rsxil6i67-glibc-utf8-locales-2.31 >> guile-colorized 0.1 out /gnu/store/5h0jfssgyx49cq82wrmw57an7ngb7kkz-guile-colorized-0.1 >> ~~~~ > I don’t know what this is supposed to demonstrate. “sudo -i guix” runs > Guix as the root user, which has a different default profile. I made a typo when pasting the output from terminal. There are two package -I outputs I posted, if you check. The one with fewer packages is the root profile, of which you can see the command I used. The one with more packages is not the root profile, but the `guix package -I`. Perhaps I could have split it into two parts to make it more clear. This is supposed to show, that I already installed some software, instead of starting completely from a clean install, in case, that the error I got could be caused by anything I installed already. I don't know how it works internally, so perhaps it would be of use to someone knowing more than me about Guix package manager. Better to put all the info out there, than making others ask for it, because it's missing. That was the idea I had behind that. >> The other command to show the count of packages also does not work for me: >> >> ~~~~ >> xiaolong@xlx200:/$ sudo du -sh gnu/packages/*.scm | sort -nr | head -n5 >> du: cannot access 'gnu/packages/*.scm': No such file or directory >> ~~~~ > That’s not a general command to count packages. This was just simon’s > way of showing you that the file containing package definitions for > Emacs packages in the Guix repository is among the largest modules. > > To show all available packages use “guix package --list-available”. > >> Do I need to create channels, like a custom way of structuring packages >> for myself, before running these commands? > No. The command line that simon showed you is a simple combination of > coreutils commands that operate on the Guix source code. If you want to > run the same command you need to do this in the directory containing a > checkout of the Guix source code. OK I see, thanks! Regards, Zelphir -- repositories: https://notabug.org/ZelphirKaltstahl