<jts>hey y'all. I'm trying to try out Clojure and it seems there's a bit of complexity around the Clojure and Java ecosystem (shocking, I'm sure). Does anyone know a list of packages I can install to get, like... a basic core installation?
<yarl>I am trying to use emacs + geiser to play with guix sources but I am confused. I don't know really how to do to have the equivalent of guix repl.
<yarl>For example, I would like to hack on (guix import texlive). I wan't to do that because I tried to import a latex package and it failed with "failed to download description...". I would like to know how to hack this myself.
<yarl>I tried to open the file that contains the module (guix import texlive) and use `geiser-load-current-buffer` but it fails with "no code for module (gcrypt hash)". And it seems that's not always the case.
<yarl>Ok, I set up geiser-guile-load-path to "~/.config/guix/current/share/guile/site/3.0". I opened ~/.config/guix/current/share/guile/site/3.0/guix.scm". still "source file newer than compiled". I carry on.
<unmatched-paren>yarl: ah, you also need to add ~/.config/guix/current/lib/guile/3.0/site-ccache to guile's load-compiled-path
<yarl>unmatched-paren: Hmm. One moment, I am a bit confused. so, as euandreh said, the guix package populates $PROFILE/lib/guile/3.0/site-ccache. What's taking care of ~/.config/guix/current/share/guile/site/3.0 ?
<yarl>unmatched-paren: Wait, sorry but how do I " add ~/.config/guix/current/lib/guile/3.0/site-ccache to guile's load-compiled-path"...
<unmatched-paren>yarl: i'm not sure with geiser specifically, but there's the GUILE_LOAD_COMPILED_PATH variable
<yarl>unmatched-paren: Ok, did it in ~/.guile, restarting emacs.
<yarl>unmatched-paren: Ok, I don't have "source file newer..." now. But something is rather strange. If I enter (guix import texlive) and try to use the function "guix-name", the number of arguments does match with the declaration of the function.
<yarl>i.e. (guix-name "something") says "Wrong number of arguments to #<procedure guix-name (prefix name)>"
<yarl>But in "~/.config/guix/current/share/guile/site/3.0/guix/import/texlive.scm" : (define (guix-name name) ...)
<anschlussy>funny, as a little bit of a story i tell myself: recently, i've been more and more drawn to lisp, and even before i knew that the common method of delineating was hyphens, i switched from spaces/underscores to hyphens in my folder and filenames; kind of a lovecraftian moment, where the cthulhu of lisp was invading my dreams
<a12l>When setting up a Guix home config from scratch should I plan for using multiple files, or is one `home.scm` file enough?
<mirai_>apteryx: what's this "system test" and how do I write one? Are there any existing examples?
<mirai>yes, it's a service definition that I'm writing here for upstreaming
<a12l>I get a backtrace when I run `guix home list-generations`, and I think it's caused from that I don't have any generations. A message saying explicitly that you don't have any home generations currently would be preferable (I think).
<a12l>I've looked at the issue tracker, but not sure if I'm missing something (don't know what the "standard way" is to name issues in the Guix community).
<bost>Hi. Where is log file with the output of `guix pull`, `guix upgrade`, etc?
<sterni>do I have it correct that you don't have GNAT packaged? currently looking for a better way to bootstrap it in nixpkgs
<nckx>mirai: See gnu/tests. System tests run a full Guix System (VM).
<nckx>sterni: Correct. We're unaware of any way to bootstrap Ada at this time.
<sterni>nckx: I figured as much; sadly also the situation is getting kind of bad even if you accept a binary bootstrap seed (as we do in these situations)
<nckx>sterni: How does Nix do it? You said 'better', but maybe I seek to much behind that.
<apteryx>the guix way would be to investigate the failure, and if it's not caused by something on our side (such as failure to patch FHS stuff), report it upstream, then disable that single test in a phase in the guix package definition, with a link to upstream issue.
<zamfofex>Also, on a similar note: How does cross???compilation work in Guix? Because if I remember correctly, GCC isn???t built with multilib support.
<apteryx>a GCC-based cross-compiling toolchain is built and used
<zamfofex>Is there any way to build such a toolchain for e.g. installing it to one???s profile? I remember when I wanted to compile files to 32???bit x86, I had to install a GCC that also ran in 32???bit. Which was fine, but it makes me wonder whether it???d have been possible to run a version of GCC for x86???64 that can compile to 32???bit x86.
<apteryx>I don't think so; you'd have to write a profile which invokes the procedure to derive the cross-gcc-toolchain package
<apteryx>(so probably possible, but no readily available from the command line, as far as I can tell)
<apteryx>hopefully someone who knows more about this can tip in
<apteryx>is TRAMP broken in Emacs for someone else?
<apteryx>C-x C-f /ssh:my-host: RET => File not found and directory write-protected
<zamfofex>apteryx: Ah, that???s fair! On a related note: That GCC is unable to compile to Wasm feels very unfortunate. I know that someone who goes by ???pipcet??? once started work on porting glibc, coreutils, binutils, etc. to Wasm, and they also took the time to add a Wasm backend to GCC.
<zamfofex>Now, the whole thing was tied together using Perl scripts and this weird JavaScipt + C preprocessor hybrid, so it was kinda hacky. But I wish someone knowledgeable would polish up their work for merging upstream, at least for GCC.
<zamfofex>When I say ???someone knowledgeable??? I just mean ???more knowledgeable than I am???. Of course, pipcet is ver knowledgeable themself. ????
<lechner>nckx: Hi and sorry I never got back to you on XDG_RUNTIME_DIR. Has it been a problem outside of Guix Home?
<lechner>apteryx / Hi, I see the same but have otherwise not used TRAMP before.
<rekado>connection to debbugs times out, so we can???t sync issues.guix.gnu.org
<gnucode>I just found out that guix had packaged zig! That's awesome. I wonder when someone will package river wm.
<a12l>I want a permalink to GUIX's `.profile` file. Currently .profile -> /gnu/store/dann7r1095xll0kji5yl0ql07096rc8j-shell-profile, but I've been trying to figure out how to do look up what symbolic links exist to link to a path.
<a12l>The TL;DR. is that to lessen the amount of state held by the computer.
<crono>nckx: I havent filed one, and I havent seen anyone else that has this problem. Its just the invoking M-x guix-command or the guix completion has a gexp symbol error, like the module wasnt loaded. I should just be able to load gexp module.
<nckx>a12l: A ~/.profile isn't created or managed by Guix, but it is one of the services offered by ???guix home???, so I guess the supported (if not fastest) way to recreate it is ???guix home reconfigure???.
<nckx>crono: So silici???us' problem is different?
<nckx>That's what I get and what it sounds like you get, so I assume it's the same. I just wasn't at a computer with emacs when I first linked to it above.
<crono>nckx: Yah im trying to get more of an emacs workflow for most things. After Geiser Debug workflow ive been addicted
<nckx>sneek: Later tell crono: Would you have the time to report this bug to bug-guix at gnu dot org? It's beyond my abilities, since I assume it's some reader thing ((guix gexp) is exported just fine by (guix scripts deploy)), which are beyond my abilities.
<sneek>crono, nckx says: Would you have the time to report this bug to bug-guix at gnu dot org? It's beyond my abilities, since I assume it's some reader thing ((guix gexp) is exported just fine by (guix scripts deploy)), which are beyond my abilities.
<a12l>nckx: I can only keep state (i.e. files) in selected directories. To save .profile would also mean that I need to keep the state directly under `~/home`, which one of the most common places to keep state.
<nckx>a12l: Could you fiddle with ???HOME=/some/saved/directory guix home reconfigure ??????? The activation scripts (and they are scripts, there's no /gnu/store/???-my-home directory with all the symlinks) honour $HOME.