IRC channel logs
2025-08-20.log
back to list of logs
<FuncProgLinux>Hello geeks! Is this the correct channel to ask about packaging issues? <FuncProgLinux>I'm working with mate-applets and mate-panel, the applets depend on the panel to build. But in order for the applets to work those have to be "inserted" in the panel package. I see that nix has a "-with-applets" variant, but I don't know how to translate it to scheme. I know union-build exists but I ignore how to pass a list of packages to a package. I've also tried pointing files to /run/current-system/profile/ but I think that defies guix's pu <spiderbit>So I tried to workaround my userspace problem with xremap with something like that: KP0: { launch: ["emacsclient", "-s /run/user/1000/emacs/server", "-ce", "&"] <spiderbit>if I use that or without the & in cli as root it works but not as option in xremap... but yes ideally I could just use the tool as user which fails because the tool can't create a input device <spiderbit>ohh for some reason splitting the -s with the server file did make a difference... so I got at least my workaround working :D <tux0r>ACTION uses emacsclient without -s and is happier that way <tux0r>(fwiw and although spiderbit seems to have gone, it's probably -f, not -s) <untrusem>So I have this file where I define packages https://bpa.st/FNDQ , guix can find all the packages except "emacs-doric-themes" when I search for it, it given `unknown package error. <untrusem>I am not doing anything different for this package, I wonder why guix can't find it <Rutherther>Presumably this package is in none of the channels you are using <Rutherther>How are you including that file of yours with packages? <Rutherther>How are you including that file of yours with packages? <Rutherther>Okay, and running guix repl on that file doesnt end up with error? <untrusem>bruh now its searchable, woah, I have been trying since yesterday <PotentialUser-43>I've been reading the manual, and I can't the difference between `text-file*` and `mixed-text-file` <identity>PotentialUser-43: ‘text-file*’ returns, as a monadic value, a derivation that builds a text file containing TEXT; ‘mixed-text-file’ returns an object representing a store file containing TEXT. <identity>in other words, ‘text-file*’ returns a recipe to build the file, while ‘mixed-text-file’ returns the file <PotentialUser-43>So e.g., if something expects a file-like object, I should use `mixed-text-file`? <csantosb>Ey Guix, max column is still 78, right ? #2123 <identity>csantosb: .dir-locals.el has 78 and .editorconfig has 80 <ekaitz>csantosb: e018fb6f61ad5746e845721e2850ae2f97e328c7 <ekaitz>.dir-locals.el has 78 for the fillcolumn, which idk but I guess it's the last character you can write there <aitzkora>Hi! I define a python package for a library and my package needs a environment variable to be defined at runtime. I saw that it is possible to use wrap-program for that purpose. In this case, which program must be wrap, the python interpreter or Is there any classical way to do that for python packages ? <ekaitz>csantosb: so "blablabla|h\n" meaning the h is in the fillcolumn and the \n is not shown <ekaitz>aitzkora: egun on, try searching for wrap-python in the guix codebase <aitzkora>I'm also euskalduna, baina hemen teorikoki ez da posible euskaraz mintatzea <ekaitz>aitzkora: hehe, we should continue in english, yeah... but people here will understand the excitement of finding a fellow basque <ekaitz>csantosb: what a crazy issue the one you shared there btw <aitzkora>@ekaitz : I just finish two weeks in Barnetegi in Zornotza. I'm happy to see there are euskaldunak who are using guix ! <ekaitz>csantosb: guix/lint.scm:1977 <-- maybe this needs a fix <ekaitz>csantosb: but it might be 90 as a hard limit and 80 as a soft-limit <csantosb>I'm trying to figure out where exactly in the doc this is stated <ekaitz>csantosb: there was a note when the limit in `guix lint` was added <ekaitz>+ ;; Note: We don't warn at 80 characters because sometimes hashes and URLs <ekaitz>+ ;; make it hard to fit within that limit and we want to avoid making too <ekaitz>i'm blind! i dived so deep for no reason! <ekaitz>yeah, that I shared with you before <csantosb>So the linter has always checked for column 90, and I just realised that now as I'm using fill-column at 78 to fix the limit to 80. Nice. <csantosb>Yeah, the comment is from 10 years ago. I'm late, I guess 😁 <ekaitz>but it's a great way of looking at things, because it isn't very obvious <ekaitz>it should kind of report on our coding style <ekaitz>maybe we could add some --pedantic flag or something like that <ekaitz>it feels quite arbitrary to have a linter that doesn't really lint because it's noisy <ekaitz>and this kind of comments that we have in the codebase we could make explicit in the program <ekaitz>these things are a barrier of entry <jjba23>I would love to hear your first impressions on an experiment I am doing, which I feel has great potential, specially in Guix ecosystem. It's a replacement for Makefile, simpler and using Guile Scheme for everything: https://codeberg.org/jjba23/maak <Guest86>hello, I am trying to get hibernation working on my computer.currently, loginctl hibernate doesn't do anything. <Guest86>sorry I got disconnected, did I miss anything? <lilyp>Guest86: you need to add the resume parameter to kernel-arguments and have a swap partition with enough space <lilyp>look at your ram, now back to your swap, now back to your ram, now back to your swap <lilyp>if your ram fits into the swap, it is large enough <gabber>my opensmtpd-service depends on 'networking but fails to start after reboot due to "invalid virtual ip or interface: eth0". am i doing it wrong? <Deltafire>jjba23: first impression is that it doesn't follow typical Makefile format (list of targets and steps to build them) and the examples don't really show anything could have been done in a simple Bash script <Deltafire>so not really sure about it.. but i do like the idea of replacing complicated configure / makefiles with scheme <Deltafire>although isn't this what guix is already doing? <jjba23>Deltafire: thanks for looking at it. Indeed the idea is to go more in the direction of functions instead of targets. Some of the things that I show in the example, like lambda, map, etc. are much uglier in a bash file, and indeed, not exactly nice in a Makefile. With maak you would have this power for any project of yours. I am not aware of Guix having something like this no :) <aitzkora>Is there a command to find a file in a tree (I want do the same job that search-input-file but for output directory) ? I could do (out (assoc-ref outputs "out") in my lambda <Guest86>So I added a resume=UUID= kernel-argument, but I still cannot hibernate <gnucode>has anybody worked on getting guix system to run on power9 recently ? <andreas-e>gnu.org seems to be down, and with it the Guile manual that I usually consult. Is this somehow available in a digestible form in Guix? Of course one should be able to look at the texinfo sources...' <andreas-e>Answering my own question: "./configure && make html" was my friend. <noe>andreas-e, you don’t want to use the “info” command? <andreas-e>I have always found "info" confusing. I think it only works well for emacs users, or better yet from inside emacs. <ieure>Same. It's great inside Emacs, that's the only way I use it. <noe>It would need a good GNOME frontend IMO <andreas-e>In the past I have used it with a KDE info reader, which also worked well. <gnucode>hmmm...I'm considering creating to partitions /dev/sda3 for /gnu/ & /dev/sda4 for /var/guix...Then I could boot for /dev/sda1 (alpine) or /dev/sda2 (chimera) and share the guix installation on both distros... <mghackerlady>Hey! I've used guix in the past and want to try it again but I've sense switched to the KDE desktop. Is there an easy way to get KDE up and running? what about SDDM? <andreas-e>There is plasma-desktop-service-type, I think that should give you KDE. <andreas-e>Does anybody know of a simple solution for cartesian products with an additional predicate in Guile? <andreas-e>If X and Y are lists, I would like the list of (x y) with x from X and y from Y such that (pred x y) evalutes to #t. <andreas-e>Actually my problem is even more specific: There are functions f and g such that (pred x y) is (equal? (f x) (g y)). <andreas-e>I can compute the (f x) and (g y) once and for all, and then my problem becomes like this: <andreas-e>Given a list X with elements (x z) (where z is (f x)) and a list Y with elements (y z) (where z is (g y)), return the list of all (x y) such that there is a z with (x z) in X and (y z) in Y. <andreas-e>I have a solution with lots of map, find and filter, but I wonder if there is a pre-made one-liner in Guile. <lilyp>andreas-e: SRFI 1 has filter-map <andreas-e>lilyp: Thanks! That is quite useful. I had found a solution with (fold append ...), giving it the empty list when the condition is wrong, but this will be a bit more compact. <noe>jlicht, first step would be to try it of course! Get a git clone of guix, and run the commands in “ View command line instructions ” of the codeberg page to get a copy of the PR <noe>then build guix as usual and try it in pre-inst-env I suppose <Deltafire>is it possible to avoid building the .texi documents when running guix from a local checkout? <andreas-e>I do not think so. It is annoying, especially when one knows one will not read the translations.