IRC channel logs
2025-06-05.log
back to list of logs
<untrusem>is there a way to make use-package use guix as the package manager so that I don't have to change my config? <apteryx>I'm having a problem accessing a site that uses a self-signed certificate with librewolf: it just says the page is unreachable, I think it falls-back to attempting to use HTTP instead of HTTPS? If I use icecat instead, it prompts with a security risk/invalid certificate warning, but I can opt to continue. <apteryx>is there a way to get that same behavior in librewolf? <apteryx>untrusem: you mean in your .emacs config? <apteryx>you could read its doc or source code and see if it's configurable that way <apteryx>but maybe it'll be happy to find packages on the EMACSLOADPATH that is used by Guix? <apteryx>and only install something if it wasn't already installed by Guix <untrusem>I know there in a emacs-home-service but I would like to keep my emacs separate <vhns>emacs-home-service is a thing now? <vhns>hmm searching info pages yields no result <vhns>01:52 < untrusem> home-emacs-service-type # I'm on guix c1d6ab1a51854d40261496745926ad5919dabc9d and there is no such home service as home-emacs-service-type <mra>if you have a minute, could you check if #127 looks good to you with the changes I've made? I think that it's ready to merge modulo final approval from yourself and Maxim <elb>OK, I followed some instructions from ieure to update a couple of my savannah guix machines to use codeberg, but on another I'm experiencing difficulty. I used `guix describe -f channels` to get my current channel config, edited it to point to https://git.guix.gnu.org/guix.git and removed the commit sexp, but then when I update with `guix pull -C channels.scm`, while it appears to work and says it's updated to c1d6ab1, when I run `guix <elb>describe` it still shows savannah's git uri and a525694 <elb>I can't see it complaining that anything when wrong, so I'm not sure how to "fix" it <jjba23>Hey guix IRC! I was hoping to poke your brains for a little bit, I am in need of knowledge sharing, and advice on how to best distribute a Guile Scheme application of mine with Guix. I am talking more specifically about iter-vitae ( https://codeberg.org/jjba23/iter-vitae ). The tool is quite simple, and 100% written in Guile. I want to create a Guix package definition (potentially upstream to Guix eventually). I would really appreciate <jjba23>if you could go quickly through the source code and offer your perspective. My idea is this package should add a `iter-vitae` binary/script in the user's path (the store), so that you can run the tool from anywhere. I normally run it like this, directly from the Makefile, and also do this in my CI: guix shell -m manifest.scm -- guile -L ./src --fresh-auto-compile -c '((@(iter-vitae main) main))' --locale $(2) --persona-file $(1) .Since <jjba23>I am the developer, it's perfect for me. But for end-users, I <jjba23>want to offer something more convenient. Could you offer me some of your wisdom on how you would go about it, and what would you change in order to distribute this easier? <noe>You could define a iter-vitae package in guix.scm and tell your users to do guix shell -f guix.scm, and for the binary I guess it could be some kind of wrapper in the package. <noe>And then you could even use guix pack to make that package a tar archive / appimage to ship for users without Guix! <jjba23>hey noe it sounds indeed real nice to be able to use guix pack too. do you maybe know of an example i could learn from? also why use a `guix.scm` instead of a `manifest.scm`? <jjba23>also how i would define this package, and this wrapper, it's quite mysterious to me <jjba23>i can use guile-build-system, but how to write a wrapper that will load stuff properly and pass CLI args.. i feel like this should be easier, and i am somehow missing something obvious hahahha <noe>Manifest describes the dependencies, guix.scm describes the package. <noe>Yeah use guile-build-system, with the #:source-directory "src" argument. And for the wrapper, I guess you’d have to create a new script that execs guile with "$@" for the arguments. <untrusem>anyone used guix inferior before? looking for a real world example <untrusem>I want to use my old kernel and reconfigure my system <untrusem>yeah read that identity, thanks just wanted if anyone used that <untrusem>I got another configuration to steal now :) <untrusem>best way to guix is to learn from other people configs <untrusem>yes, Its like taking a walk in a unknown place. <ieure>Org Babel is really a fantastic tool. I don't get to use it as much as I used to, but a few jobs ago, it was invaluable. <untrusem>my short term goal is to, move to wayland, delete gdm, login via tty, install niri wm <ieure>Worked at a fintech company and had situations where I'd have to puzzle out what had gone wrong with some process or other. Always used Org Babel for that, I could connect to our Redshift data warehouse and intermix thoughts, SQL, massage the results with elisp (or sometimes Python), link back to the code. Really terrific stuff. <ieure>Export it all to Markdown at the end and plop into the ticket tracker. <GuixNewbie>I'm getting a very scary message when running `guix pull` on my server: guix pull: error: aborting update of channel 'guix' to commit 027a47787f8dcf6651a1c20c5b475376defe6d6b, which is not a descendant of ad8cb7af8fc572bb3d11cd0344bd2bed3b9d653f <GuixNewbie>hint: This could indicate that the channel has been tampered with and is trying to <GuixNewbie>force a roll-back, preventing you from getting the latest updates. If you think <GuixNewbie>this is not the case, explicitly allow non-forward updates. <Tadhgmister>I think it is related to the move to codeberg as the new connonical source but don't remember where the official mention of it is in the docs/discussion <ieure>GuixNewbie, There were some commits accidentally pushed to Savannah that didn't make it to Codeberg. <ieure>ad8cb7af8fc572bb3d11cd0344bd2bed3b9d653f was one of them. <ieure>Savannah got force-pushed to remove them, so, anyone still pulling from Savannah will get that message and have to allow downgrades :( <GuixNewbie>This is on a machine installed from a recent .iso, so I'm guessing most people have the same problem. `guix describe` indeed shows savannah <GuixNewbie>How can the system-wide repository url be changed? grepping for savannah in /etc yields nothing <ieure>GuixNewbie, Anyone who pulled those commits will be affected, it has nothing to do with when they installed or how. <ieure>GuixNewbie, If you pull from Savannah and `guix system reconfigure', you should get pointed to git.guix.gnu.org, which currently points at Codeberg (but can also be pointed elsewhere, if we need to move source repos again). <GuixNewbie>Ok, so automatic, but i need to run `guix pull --allow-downgrades` first <ieure>Although... if you got those commits, you should have the one that updates the URI. You might just need to reconfigure. <ieure>But you'll have to --allow-downgrades at some point regardless. <Tadhgmister>how do I specify a local directory as the source of a package? I need to make edits to the package dependencies and it feels annoying to have to do that by writing a modified package and then also needing to wrap it in a transform <luca>(source (local-file (dirname (current-filename)) ? <Tadhgmister>local-file throws an error if you give it a directory though <Tadhgmister>oh wait do I just pass some #:recursive #t to local-file? <luca>Sorry, yeah `(source (local-file (dirname (current-filename)) #:recursive? #t))` <Tadhgmister>does anyone know off hand a package I can look at for reference for how to do a simple text substitution in a file of the source? <Tadhgmister>that would make more sense than making the edit locally and then depending on files in my system <ieure>Tadhgmister, Look for anything in gnu/packages that has substitute* in it. <luca>Does substitue* do any kind of checksum to check that the substitution _does_ something? Like xbps-src's vsed <PotentialUser-93>installed great boots in to dm fine login went fine, openbox right click works, only thing no programs work no terminal installed <identity>PotentialUser-93: look at the qemu menu bar, there should be an item for swapping to a different tty or something like that <meaty>Is there a way to tell guix to ignore errors/nonzero exit codes for a certain part of a build? <meaty>ieure: it's complicated, but essentially it's a test that needs to be run to regenerate deleted pre-generated files. It does what it needs to do, but it also fails <mra>hey, quick question: where should I look in the source to understand how the hash of a derivation is computed? i'm thinking about trying to add an extra attribute to the `derivation` function, and i cant tell if this would mess up the hashes of all packages