Re: guix shell readline issue with R

2023-07-03 Thread Kyle Andrews
Edouard Klein writes: > Here is a script that restores the ctrl-C behaviour of R, whithin a guix > shell. > > I must admit I don't exactly understand the finer points of why it works, but > just trapping SIGINT in the script is enough for R to behave. > > My intuition is SIGINT is sent to the

Re: guix shell readline issue with R

2023-07-02 Thread Kyle Andrews
Edouard Klein writes: > Hi Kyle, > > > Running > guix shell r > > and then > R > > will get you the C-c handling you want. Hi Edouard, I wrote another reply, but forgot to comment on this because I feel like I am missing something here. It would be really convenient if I could just write a

Re: guix shell readline issue with R

2023-07-02 Thread Kyle Andrews
yet found an approach that worked. I placed a basic R manifest here if anyone would like to try: => https://paste.debian.net/1284782/ Basically my shell script was: ``` #!/bin/sh guix shell -m /tmp/manifest.scm -- R --no-save --quiet --no-restore ``` In the R REPL I interactively test the probl

guix shell readline issue with R

2023-07-02 Thread Kyle Andrews
Dear Guix, When I run `guix install r` and then start an R process I get a readline-enabled REPL where I can abort commands with C-c C-c while keeping the process alive afterwards. When I run R from `guix shell r -- R` I don't get any readline support in R. Pressing C-c immediately aborts the

Re: Alternatives to --emulate-fhs on foreign distros

2023-04-20 Thread Kyle Andrews
"(" writes: > Kyle writes: >> The context is that my R package calls a bunch of shell scripts stored >> inside it. I am getting errors about >> /usr/bin/env not being available (e.g. bad interpreter: no such file or >> directory), so was thinking that their >> shebangs were not getting patch

Alternatives to --emulate-fhs on foreign distros

2023-04-18 Thread Kyle Andrews
Dear Guix, The (many) shell scripts in my software depend on bashisms. In the code right now I typically use /usr/bin/env bash since I had read that was the most portable way of referencing a shell. However, I really don't think I have a good handle on what my choices are. Maybe the tedious s

Re: How to copy a file to the package /bin folder using the r-build-system?

2023-04-09 Thread Kyle Andrews
"(" writes: > [[PGP Signed Part:Undecided]] > Heya, > > On Sun Apr 9, 2023 at 4:15 AM BST, Kyle Andrews wrote: >> > (lambda _ >> > (mkdir (string-append #$output "/bin")) >> > (copy-file "i

Re: How to copy a file to the package /bin folder using the r-build-system?

2023-04-08 Thread Kyle Andrews
Simon Tournier writes: > Hi, > > On ven., 31 mars 2023 at 23:21, Kyle Andrews wrote: > >>(let ((out (assoc-ref outputs "out"))) >> ;;; TODO: this doesn't work! >> ;; copy site-library/litt

Advice on handling optional dependencies or packaging yp-tools

2023-04-05 Thread Kyle Andrews
Dear Guix, I'd like to be able to have access the yp-tools package with Guix from a foreign distro. Particularly, I want to be able to call yp-cat since I have placed some optional functionality which does this in an R package using it's `system` command. I had been using yp-cat on Ubuntu (wher

How to copy a file to the package /bin folder using the r-build-system?

2023-03-31 Thread Kyle Andrews
Dear Guix, I want to package the littler R package. Unlike most R packages, this one provides an executable (a little r to complement the big R) that should go on the PATH rather than be tucked away into site-library where it cannot be used. Surprisingly, to me, when the command below fails ...

Need some help packaging parts of a scientific workflow

2023-03-22 Thread Kyle Andrews
Dear Guix, Part of my scientific workflow involves compiling a small Racket script for a command line program into its executable and placing that on PATH. I had bundled this script inside an R package which made sure it got compiled and everything was correctly configured at library load time.

Re: Mysteries of channel configuration during system reconfigure

2023-03-10 Thread Kyle Andrews
Julien Lepiller writes: > guix system describe lists channels used to build your system, but > they can be different from the ones currently known to guix. That seems consistent with what I have observed. > Does your /etc/channels.scm list the extra channels? At this point it does not. I "re

How to appease GDM so I can login with another window manager?

2023-03-09 Thread Kyle Andrews
Dear Guix, I am using herbstluftwm as my window manager on my old Guix laptop. It shows up as an option in a bottom right corner of GDM. On my new laptop, this menu doesn't show up. In both cases I have included herbstluftwm as a required package in my config.scm file. My old laptop's config.scm

Re: Mysteries of channel configuration during system reconfigure

2023-03-09 Thread Kyle Andrews
SeerLite writes: > `sudo guix system reconfigure` and any `guix package` command will (by > default) use the generation shown in `guix describe`. On first boot, > this generation _will_ be different from the one you had in the live > system. This is because the generation is saved at > ~/.confi

Mysteries of channel configuration during system reconfigure

2023-03-08 Thread Kyle Andrews
Dear Guix, I am trying (and failing) to setup a new computer with Guix. I managed to get through the installation process with a configuration that boots into GNOME. However, the keyboard is messed up (I made a typo) and I don't yet have the desktop environment up and running I actually feel pro

Re: Using an alternative python to build python modules

2023-02-23 Thread Kyle Andrews
Simon Tournier writes: > (I let aside the inferior part that you do not need, IMHO.) I hope you are right. I will keep thinking about it and will try to revisit some of my assumptions. > The computational environment you create with Conda is totally > inconsistent in regard to the Python vers

Re: Using an alternative python to build python modules

2023-02-21 Thread Kyle Andrews
Kyle Andrews writes: > Kyle Andrews writes: > >> There seems to be some secret Guile incantation I am overlooking. Could >> you give me a hint of what this could be? > > Tobias pointed out to me that the Guile developers could be to blame > here. They appear

Re: Using an alternative python to build python modules

2023-02-21 Thread Kyle Andrews
Kyle Andrews writes: > There seems to be some secret Guile incantation I am overlooking. Could > you give me a hint of what this could be? Tobias pointed out to me that the Guile developers could be to blame here. They appear a bit too preoccupied with prematurely optimizing the speed o

Re: Using an alternative python to build python modules

2023-02-21 Thread Kyle Andrews
Simon Tournier writes: > > You might be interested by the unexported procedure from (guix > build-system python) Thanks, Simon. Wojtek already suggested this procedure to me and I have been trying to understand it. Unfortunately, I am stuck earlier than I originally thought. I can't figure out

Re: Using an alternative python to build python modules

2023-02-20 Thread Kyle Andrews
ps://git.savannah.gnu.org/cgit/guix.git/tree/guix/build-system/python.scm?id=b544f460989a6189af111bb3ff6752cabdf23abc#n82 >> >> -- (sig_start) >> website: https://koszko.org/koszko.html >> PGP: https://koszko.org/key.gpg >> fingerprint: E972 7060 E3C5 637C 8A4F 4B42 4

Using an alternative python to build python modules

2023-02-17 Thread Kyle Andrews
Dear Guix, I want to use the python-apted package in my manifest. That package is not in Guix, but can readily be fetched from: ``` guix import pypi APTED > python-apted.scm ``` I just had to prefix the following modules to turn that into a package definition as well as a manifest. ``` (use-m

Re: guix pack isolation

2023-02-15 Thread Kyle Andrews
Simon Tournier writes: > About squashfs (Singularity container), you can try: > > guix pack -f squashfs python python-numpy bash-minimal -S /bin=bin > > which will produce a compressed squashfs that you then import with > Singularity. This is pretty much what I had tried minus the `-S /bin

Re: attempt to create a profile

2023-02-14 Thread Kyle Andrews
Simon Tournier writes: > I am using multiple profiles and I barely hit collisions. Given one > specific revision of Guix, collisions should not be possible – it means > something is wrong somewhere with package definition; although, maybe it > is impossible to avoid some collisions with large

Re: attempt to create a profile

2023-02-14 Thread Kyle Andrews
was no X11 available and so it errored out. It seems that multiple -p arguments to guix shell doesn't really work like I would hope. Ideally it would produce the same sort of system environment as is produced by eval'ing `guix package --search-paths` with multiple profiles. 宋文武 writes: &g

guix pack isolation

2023-02-09 Thread Kyle Andrews
Dear Guix, I am wondering how I can/should go about isolating containers created using `guix pack`. Right now they are inheriting configurations from my personal user folder. My system administrators are still quite skeptical about installing Guix, but they have made it convenient to submit sin

Re: attempt to create a profile

2023-02-04 Thread Kyle Andrews
Simon Tournier writes: > Hi, > > On Wed, 28 Dec 2022 at 15:09, Gottfried wrote: > >> Which commands can I use to enter and close my new profile? > > To enter, you just need to ’source path/to/some-profile/etc/profile’. > > However, you cannot “deactivacte“; unset the environment variables and

Re: guix running advice: correct?

2023-02-04 Thread Kyle Andrews
Julien Lepiller writes: > Hi Andy, > > I'm the author of this advice. I think it's still correct. It's mostly > sanity checks that you would run to ensure you can get packages from > this channel. Most of it is scattered around the manual, mostly in the > manual installation documentation. > >

Re: Fwd: PinePhone Pro & Guix

2022-12-29 Thread Kyle Andrews
I'm very excited about this! Thank you so much for your efforts! Having a modified SXMO using Emacs wherever possible running on a Guix powered PinePhone would be my dream come true. "jgart" writes: > Sorry! I forgot to change the Subject for the digest. I hope this works... > > Forwa

Seeking suggestions for fixing the R gpg package

2022-05-05 Thread Kyle Andrews
Hi, I want to use the R package gpg which provides bindings to GPGME from within Guix. Most of the time packaging R things is really easy thanks to the handy `guix import cran' command. Unfortunately, something is breaking with GPGME which is making this not work as I expected. Unfortunately, I

How to offload builds only when some of the offload build servers are available

2022-05-01 Thread Kyle Andrews
Dear Guix, How can I configure the offload functionality to check whether the build machines specifiec in ~/etc/guix/machines.scm~ are available first; and if they are not (e.g. because I am roaming outside my local network) just proceed with builds locally so that I don't have to remember to pa

Re: Guix completion in Emacs

2020-07-05 Thread Kyle Andrews
Pierre Neidhardt writes: > It works on and off for me, sometimes with the same error. > I haven't figured out yet how to reproduce this issue reliably. Part of the reason it may have been breaking for me was that I was placing an additional git checkout of guix on my guile %load-path. I don't r

Re: Printer configuration

2020-06-27 Thread Kyle Andrews
Wiktor Żelazny writes: > On Fri, Jun 26, 2020 at 06:12:23PM -0400, Kyle Andrews wrote: > >> I figured out how to successfully print a document using ~libreoffice >> --headless -p test.odt~. So, I think my printer problem is actually >> reflecting a problem with syste

Re: Printer configuration

2020-06-26 Thread Kyle Andrews
Wiktor Żelazny writes: > On Fri, Jun 26, 2020 at 02:13:14PM -0400, Kyle Andrews wrote: >> >> Wiktor Żelazny writes: >> >> > Does /gnu/store/.../cups/filter/rastertoqpdl exist? >> >> Yes, it exists in the splix package, but not in the cups package. >

Re: Printer configuration

2020-06-26 Thread Kyle Andrews
Wiktor Żelazny writes: > On Fri, Jun 26, 2020 at 12:56:08PM -0400, Kyle Andrews wrote: > >> I observed no change in the error I get when trying to print a test >> page. > > Does /gnu/store/.../cups/filter/rastertoqpdl exist? > > Is the user printing the test

Re: Printer configuration

2020-06-26 Thread Kyle Andrews
Wiktor Żelazny writes: > On Thu, Jun 25, 2020 at 10:11:36PM -0400, Kyle Andrews wrote: > >> (use-modules ... >> (gnu packages cups) >> ...) > >> (service cups-service-type >> (cups-configuration >>

Re: Printer configuration

2020-06-25 Thread Kyle Andrews
Kyle Andrews writes: > Dear Guix, > > Could you help me get my printer working? > > I setup my cups service: > > ... > (use-modules ... >(gnu packages cups) > ...) > (use-service-modules ... cups ...) > ... > (service cup

Printer configuration

2020-06-25 Thread Kyle Andrews
Dear Guix, Could you help me get my printer working? I setup my cups service: ... (use-modules ... (gnu packages cups) ...) (use-service-modules ... cups ...) ... (service cups-service-type (cups-configuration (extensions

Guix completion in Emacs

2020-06-14 Thread Kyle Andrews
Hello Everyone, I am unable to conditional tab completion of Guix commands when in shell-mode or eshell-mode in Emacs. In other words, I can tab-complete the major modules e.g. ~guix package~, but cannot tab complete ~--arguments~ to them. When I try I see an error: guix-geiser-eval: Error in

Re: How configure my desktop to use a static ip address?

2020-06-14 Thread Kyle Andrews
,%nm-static-connection ...)) I haven't tested it quite yet, but it makes some sense to me. If you think this is not exactly the right approach, please let me know. Kyle Andrews writes: > Dear Guix, > > I would like to setup my desktop computer so

Re: Could anyone please package RStudio?

2020-03-16 Thread Kyle Andrews
Ricardo Wurmus writes: > Ricardo Wurmus writes: > >> Kyle Andrews writes: >> >>> […] Below I provide >>> links to the NixOS RStudio package along with Rekado's package of an >>> older version of RStudio (which also didn't build for

Re: Emacs, distro with guix as package manager and guix.d

2020-02-08 Thread Kyle Andrews
On my guix (d441a6455051d70d7ff0d951c7e68318499b1739), a quick search (guix\\.d[^a-z]) using the silver-searcher reveals several additional packages and documentation makes references to these directories including several emacs packages as well as: cedille in gnu/packages/cedille uim in gnu/pac

Re: Emacs, distro with guix as package manager and guix.d

2020-02-08 Thread Kyle Andrews
emacs-ess build ESS version 17.11 which is significantly out-of-date as well. The latest release is 18.10. Pierre Neidhardt writes: > If I recall correctly, a number of packages had to be updated after the > transition to the new build system. I suppose that emacs-ess was left aside.

Re: Could anyone please package RStudio?

2020-02-02 Thread Kyle Andrews
Ricardo Wurmus writes: > Hi Kyle, Hi Ricardo, > It’s on my list to eventually package a more recent version of Rstudio. > I’ve been using the older version for quite some time at the institute, > but it’s possible that with recent upgrades to Guix the package no > longer builds. > > One obst

Could anyone please package RStudio?

2020-02-02 Thread Kyle Andrews
Dear Guix, Now that Qt 5.12 and qtwebengine have been added to Guix, would an experienced packager be able to add RStudio to Guix? It appears that all of the dependencies referenced in the NixOS package definition are also packaged for Guix. Many thousands of R users are enthusiastic about Repro