Re: G-exp '#$... vs. (list $#@...)

2024-07-04 Thread Carlo Zancanaro
Hi Felix! On Wed, Jul 03 2024, Felix Lechner via wrote: > '#$something This expands to a quoted form, so whatever "something" splices in ends up quoted in the output. > (list #$@something) This expands to a (list ...) form, where the elements of "something" end up spliced as the list elements.

Re: oci-container-service-type: Wrong type argument in position 1 (expecting struct)

2024-06-09 Thread Carlo Zancanaro
Hi Samuel, On Wed, Jun 05 2024, Samuel Willey wrote: > ice-9/boot-9.scm:1685:16: In procedure raise-exception: > In procedure struct-vtable: Wrong type argument in position 1 (expecting > struct): "pihole/pihole:latest" I believe this is a bug[1] that was fixed in a recent commit

Re: consider setting the necessary environment variables

2024-03-17 Thread Carlo Zancanaro
Hi Thomas, On Sun, Mar 17 2024, Thomas Bennett wrote: > I have an issue where my root user seems to be unable to have its > environment set. That sounds annoying! Hopefully we can figure out what's going wrong for you.  > # tail /root/.bashrc > [...] > >

Re: Unable to chain-load Debian

2024-03-06 Thread Carlo Zancanaro
Hi William, I don't know anything about Grub chainloading, but I had a quick look and I think I have a vague idea what's going on. The menu entry is put together by this code in gnu/bootloader/grub.scm: --8<---cut here---start->8--- #~(format port "

Re: Turning Gemfile.lock into a guix environment

2024-03-02 Thread Carlo Zancanaro
Hi Daniel, On Tue, Feb 27 2024, Daniel Littlewood wrote: > Hi everyone, I'm trying to figure out how to convert a Ruby project > from using bundler to using guix directly, so I can sidestep > rvm/rbenv/bundle. I'm not aware of a solution to this in Guix, but there is a Nix-based solution:

Re: Home service for mbsync?

2024-02-22 Thread Carlo Zancanaro
On Wed, Feb 21 2024, Felix Lechner via wrote: > Does anyone have an 'mbsync' home service, please? Thanks! I just run mbsync as an mcron service. I have a custom script, because I do some weird stuff to update my mu index afterwards, but it shouldn't be hard to figure out how to call mbsync

Re: uid 0 error

2024-02-19 Thread Carlo Zancanaro
Hi Mauritz, I don't know that I can help solving your problem, but I do have one relevant thing to add. On Mon, Feb 19 2024, Mauritz Stenek wrote: > Now, however, running a program with sudo ... throws this error > > sudo: /run/current-system/profile/bin/sudo must be owned by > uid 0 and

Re: Proper use of `guix build X --rounds=2`

2024-02-18 Thread Carlo Zancanaro
Hi Skyler, On Sun, Feb 18 2024, Skyler Ferris wrote: > Am I using the `--rounds` flag wrong, do I misunderstand this tool, or > is this actually a bug? I'm not sure if this is considered a bug or not, but the solution to your problem is to use --check. Using your test file running: guix

Re: Python package with some rust dependency

2024-02-17 Thread Carlo Zancanaro
On Sat, Feb 17 2024, Alexis Simon wrote: > On 17/02/2024 03:50, Carlo Zancanaro wrote: >> Also, as an aside, I'm not sure where the 'prepare-python-module >> phase is coming from. Does it actually exist? > > This is a very good question I had myself and to which I couldn't

Re: Python package with some rust dependency

2024-02-17 Thread Carlo Zancanaro
Hi Alexis, On Fri, Feb 16 2024, Alexis Simon wrote: > ``` > error: in phase 'check-python-module': uncaught exception: > wrong-type-arg "apply" "Apply to non-list: ~S" (#f) (#f) > phase `check-python-module' failed after 0.0 seconds > ... > ice-9/boot-9.scm:1685:16: In procedure raise-exception:

Re: Python package with some rust dependency

2024-02-13 Thread Carlo Zancanaro
On Tue, Feb 13 2024, Alexis Simon wrote: > Ok, this seems really counter intuitive though to go and use the cargo > build system for a python package only have a tiny part in rust. I'm not sure why this is counter-intuitive. The existence of any rust at all means you need to build rust code. The

Re: Python package with some rust dependency

2024-02-12 Thread Carlo Zancanaro
Hi Alexis, I don't really know much about building rust. Given this one repository has both, I wonder if it would make sense to build them separately (as two packages), and have one as an input of the other. Presumably this would mean the python package taking the rust package as an input, but

Re: Help with channel build system and package

2024-02-07 Thread Carlo Zancanaro
Hi Jesse, I know very little about what you're trying to do, but there's one thing that looked wrong to me: On Wed, Feb 07 2024, Jesse wrote: > ... >     (build-system crosstool-ng) > ... This isn't a build system, right? It's just the package? I think you may want crosstool-ng-build-system

Re: How do I use wrap-ruby-program to make curl findable in a Ruby package?

2024-02-06 Thread Carlo Zancanaro
Hi Marek, On Tue, Feb 06 2024, Marek Paśnikowski wrote: > 06.02.2024 13:20:52 CET Carlo Zancanaro: >> I'm glad you got something working. Using wrap-program like this will >> likely work, but with the downside that LD_LIBRARY_PATH will also be >> inherited by any child

Re: Running guix home + shepherd in non-Guix OS

2024-02-06 Thread Carlo Zancanaro
Hi Abbé, On Mon, Feb 05 2024, Abbé wrote: > I'm wondering how would one go about integrating shepherd with 'guix > home' configuration (i.e. home environment services), akin to what > Guix does (I believe, without needing to do 'guix home ...'). How are you defining your Guix Home configuration?

Re: How do I use wrap-ruby-program to make curl findable in a Ruby package?

2024-02-06 Thread Carlo Zancanaro
Hi Marek, On Mon, Feb 05 2024, Marek Paśnikowski wrote: > After many hours of searching and thinking I found the following code > works: I'm glad you got something working. Using wrap-program like this will likely work, but with the downside that LD_LIBRARY_PATH will also be inherited by any

Re: Adding shell commands the .profile with guix home

2024-02-04 Thread Carlo Zancanaro
HI Andrew, On Thu, Feb 01 2024, Andrew Stubbs wrote: > The manual suggests that "home-shell-profile-configuration" is the way > to go, but there's no example given. The home-shell-profile-service-type is the way to go, but due to the way the service is included (as an essential service), you

Re: clamav freshclam - how to provide /etc config in general

2024-01-31 Thread Carlo Zancanaro
Hi Christopher, On Tue, Jan 30 2024, Christopher Chmielewski wrote: > So my question is more general. How do you provide config files for > software that expects it to be located in /etc? Is there a best > practice? On a Guix system, you can do this by extending etc-service-type, which writes

Re: Best practice when dealing with a broken package for guix home?

2024-01-14 Thread Carlo Zancanaro
On Sun, Jan 14 2024, Fredrik Salomonsson wrote: > 3) Copy an older definition that works to my custom channel, add a > prefix and use that until it is fixed. This is what I do. Or, more accurately, I copy it into my home.scm file and use the package object directly. That way it's clear why it

Re: Development shell for diffutils does not appear to work - what am I doing wrong?

2023-09-28 Thread Carlo Zancanaro
Hi Daniel, On Tue, Sep 26 2023, Daniel Littlewood wrote: > I want to try out making a simple change to the program `diff`, which is part > of GNU diffutils: https://packages.guix.gnu.org/packages/diffutils/3.8/ I'd > like to set up a dev environment, patch diff.c, rebuild it and try out the >

Re: clang-12 doesn't contain clang-extra-tools

2021-08-10 Thread Carlo Zancanaro
Hi Josua! On Tue, Aug 10 2021, Josua Stingelin wrote:> As far as I understand, if tools-extra is defined these get installed when installing the 'out'-output of the package. This is where you're running into problems. The clangd binary is actually installed into the "extra" output of the

Re: Building Python pkg - date2name

2021-04-29 Thread Carlo Zancanaro
Hi Petr, I had a look at the date2name repository in Github, and it doesn't look like it has any instructions for packaging it at all. I'm not sure how they build things to distribute over pypi. At any rate, it looks like it's mostly a matter of marking __init__.py as executable, and

Re: Defining custom services in /etc/config.scm

2021-01-24 Thread Carlo Zancanaro
Hi Sergiu! On Mon, Jan 25 2021, Sergiu Ivanov wrote: I understand that I should somehow construct a (?) from my , but I don't see a way to do it. Unfortunately Guix overloads the word "service", where we have (a) services that consist of structured modifications to an operating system, and

Re: Install `guix pull'ed Guix to target partition on system install

2020-12-22 Thread Carlo Zancanaro
Hi Simon! On Tue, Dec 22 2020, zimoun wrote: It is. If you do: (live) guix pull (live) guix system init then it appears expected to install what the system describes *and* the current guix used to install them. Therefore, after reboot, the first “guix pull” will not fetch all the

Re: Can I easily install GNU Emacs 27.1.50 via Guix?

2020-12-18 Thread Carlo Zancanaro
Hi Simon, On Sat, Dec 19 2020, zimoun wrote: I am not sure to agree. The unexpected (by you :-)) behaviour at hand is about Emacs and "M-x shell"; and I will not speak "in general". Let's avoid using the word "expected", because that word in this context can mean different things. I don't

Re: Can I easily install GNU Emacs 27.1.50 via Guix?

2020-12-18 Thread Carlo Zancanaro
Hi Jorge, On Sat, Dec 19 2020, Jorge P. de Morais Neto wrote: It is a pity though that this workaround needs writing manual wrappers for every affected program. In this particular case, we can actually fix Emacs. When Emacs spawns a child process it passes the environment as specified in

Re: Can I easily install GNU Emacs 27.1.50 via Guix?

2020-12-18 Thread Carlo Zancanaro
Hi Simon, On Fri, Dec 18 2020, zimoun wrote: Is your point that: ... My point is: Guix manipulates environment variables in a way that can, and does, break "foreign" programs when Guix's programs launch "foreign" programs. We should consider this a bug. This bug might be hard, or even

Re: Can I easily install GNU Emacs 27.1.50 via Guix?

2020-12-18 Thread Carlo Zancanaro
Hi Simon, On Fri, Dec 18 2020, zimoun wrote: Maybe I miss something and I have not dove into all the details so I could be totally wrong. However, from my understanding, A is built against the shared library C1, and B is built against the shared library C2, and nothing says that C1 and C2

Re: Can I easily install GNU Emacs 27.1.50 via Guix?

2020-12-17 Thread Carlo Zancanaro
Hi Simon, On Fri, Dec 18 2020, zimoun wrote: When I launch Debian's Evince from Guix's emacs-maint, Evince cannot find my local printer. Look at the messages when I open Evince in an Emacs shell and open Evince's print dialog: Well, it seems expected, isn’t it? ... I don't think

Re: How do I correctly relocate PostGIS control files?

2020-11-09 Thread Carlo Zancanaro
Hi Gary, On Tue, Nov 10 2020, Gary Johnson wrote: It's been a week since my original post requesting assistance with getting Postgresql and PostGIS to work together correctly, but unfortunately I still haven't received any help with this issue. ... Does anyone know how this code works or how

Re: Am I using --with-source improperly?

2020-08-27 Thread Carlo Zancanaro
Hi Jesse! On Thu, Aug 27 2020, Jesse Gibbons wrote: Am I using the --with-source option incorrectly, or is this some sort of bug? You could argue either way. This is because --with-source is a shallow package rewrite, unlike the other --with-X package transformation options. There is an

Re: Knowing which services to restart

2020-07-08 Thread Carlo Zancanaro
On Wed, Jul 08 2020, Pierre Neidhardt wrote: > Couldn't Guix be smarter about this? Or at least provide a less puzzling > message. This was brought up when we originally implemented upgrading of services on a live system. The discussion about this starts in an email from Ludovic[1], and

Re: Update Xonsh

2020-05-19 Thread Carlo Zancanaro
Hey Edison, One easy way to do this is to just put your package definition in config.scm, above your operating system definition. I haven't tried it with a shell, but the basic idea would be to have something like this: (define-public xonsh ... your package definition ...)

Re: “Guix Profiles in Practice”

2019-11-05 Thread Carlo Zancanaro
Hey Pierre, On Mon, Nov 04 2019, Pierre Neidhardt wrote: As I understand it, the current discussion is about "pinning" profiles. Should any dependency get garbage collected, an environment will need Internet access to refetch the missing parts; I think this is what we are trying to avoid,

Re: guix package conflict

2019-08-11 Thread Carlo Zancanaro
Hey Mark, On Mon, Aug 12 2019, Mark H Weaver wrote: What leads you to believe this? I think you're mistaken, based both on past experience and also from examining the current code. After taking another look at the code, I agree with you. The relevant procedure is

Re: guix package conflict

2019-08-10 Thread Carlo Zancanaro
On Sat, Aug 10 2019, Ricardo Wurmus wrote: hint: Try upgrading both `python-pycairo' and `gtk+', or remove one of them from the profile. Have you tried that? In particular, I think `guix package -i python-pycairo gtk+` might do the trick. Does “guix package -u” not fix this problem for

Re: Scheme package installation script

2019-01-17 Thread Carlo Zancanaro
Hey Brett! On Fri, Jan 18 2019, bre...@posteo.net wrote: The issue with this meta package is that I am inheriting the hello base package because I am not sure how to bypass needing a source to pull from. There is likely a better way to do this meta-package sort of deal. Does anybody have any

Re: Error with mcron-configuration

2018-07-06 Thread Carlo Zancanaro
Hey Jone! ... (mcron-service-type (mcron-configuration (jobs (list fstrim-job ... This is close, but very slightly wrong. `mcron-service-type` isn't a procedure, so you can't call it like that. You have to use `service`: (service mcron-service-type

Re: How to install prerelease package versions (particularly Emacs)

2018-04-12 Thread Carlo Zancanaro
I've had a problem like this before, when I was trying to build the Shepherd from git. On Wed, Apr 11 2018, Pierre Neidhardt wrote: ./configure: line 3350: config.log: Permission denied I'm pretty sure this is what I had, and it was a problem of trying to build in a directory that

Re: Installation: Load non-free wifi firmware (iwlwifi)

2018-03-02 Thread Carlo Zancanaro
Hey Pierre, On Fri, Mar 02 2018, Pierre Neidhardt wrote: An idea crossed my mind: from a foreign distribution with Guix installed, run guix system init /mnt/etc/config.scm /mnt [...] Is there a simple way to do this without `herd'? There is! I followed the vague instructions in this

Re: Don't auto-start a service in Shepherd

2018-02-24 Thread Carlo Zancanaro
On Fri, Feb 23 2018, Rutger Helling wrote: Is there a way to prevent auto-starting a service in Shepherd? I find that if I use "herd disable service" it still automatically starts the service on a reboot/reconfigure. I've just had a look at gnu/services/shepherd.scm, and it looks like system

Re: reconfiguring

2018-02-13 Thread Carlo Zancanaro
On Tue, Feb 13 2018, Leo Famulari wrote: That’s a misunderstanding. All of the things in the “services” field of your operating-system configuration are “system services”, so all of them get updated. But, it doesn't try to stop and restart those services in case of any relevant changes,

Re: reconfiguring

2018-02-13 Thread Carlo Zancanaro
On Tue, Feb 13 2018, Ricardo Wurmus wrote: That’s a misunderstanding. All of the things in the “services” field of your operating-system configuration are “system services”, so all of them get updated. Should we think about changing the name for "system services"? The confusion with

Re: successful installation, but problems updating

2017-11-10 Thread Carlo Zancanaro
On Fri, Nov 10 2017, Chris Marusich wrote: > Anecdotally, I swear I've seen guix build some things from source even > when I did not specify --fallback. Has anybody else seen that occur? Yeah, I've definitely seen that. My assumption was that this is what's meant to happen when substitutes

Re: Package Installation Queries

2017-02-08 Thread Carlo Zancanaro
On Wed, Feb 08 2017, Niall Dooley wrote > (2) In terms of Emacs, do fellow Guix users install all packages via Guix > instead of the traditional ELPA, MELPA route. I suspect they do as I guess > that is the point. But I ask for advice as my 'pre-guix' emacs config makes > heavy use of the