IRC channel logs

2024-03-25.log

back to list of logs

<pfna>It's time to face the music again, gamers.
<pfna>Time to dive in and see if I can package this fucker
<pfna>Or at least build and run it, and then MAYBE package it.
<enzuru>pfna: good luck. i just did finished a gnarly package this weekend. feels good when you are done!
<enzuru>well, mostly finished :P it compiles
<bdunahu>Hi, I am reading about the bash home service configuration, and some fields such as bashrc expect a 'text-config' argument. Does anyone have an example of what this would look like?
<bdunahu>I see, it takes the path to an independent file... Maybe I will find a different solution, because I only need 1-2 lines appended to the .bashrc file
<jaft>bdunahu: One option is a ~local-file~ (likely the option you'll want but I /think/ ~plain-file~, ~computed-file~, ~program-file~, and ~scheme-file~ are all, likewise, valid for such a config. field? I could be wrong; they're mentioned at https://guix.gnu.org/manual/en/html_node/G_002dExpressions.html).
<jaft>So, for my =bashrc=, I have ~(list (local-file "./bash/rc.sh" "bashrc") (local-file "./bash/ps1.sh" "bashrc"))~ which are two separate files to be combined into the final bashrc file.
<jaft>I do this because it allows me to split my definition of my ~PS1~ and other stuff I'd normally put in my =bashrc= up.
<jaft>In my Guix Home directory, I have a directory called =bash= where the files reside (hence the paths I gave in the code).
<pfna>enzuru: that's a good start.
<vagrantc>ACTION swings the "This packages" hammer
<vagrantc>no lightning bolts or anything, just typo fixes
<bdunahu>jaft: sorry I only just saw this, but thank you! 'plain-file' was what I was looking for--I already have my configuration seperated into a 'shell' module file, so I didn't like the idea of sourcing another local file.
<adanska>Hi Guix!
<darwinsfinch>hi
<darwinsfinch>I am proud to say that I am enjoying GNU Guix on my desktop computer.
<janneke>darwinsfinch: well done :)
<darwinsfinch>I even installed my ssh keys and used rsync to get my backed up files.
<wingo>good day :)
<wingo>is there a way to get mdns lookups working in guix shell --container --network ?
<wingo>i would rather not use --container but it seems i need at least /lib64/ld-so-blabla for this use case
<wingo>hence, -F.
<gabber>\o #guix
<futurile>Morning
<gabber>is packaging telemetry functionality per se against Guix guidelinies?
<guestmeow>Hello, I have just installed Guix System, copied the /etc/config.scm to a ~/.config/guix/system.scm and ran
<guestmeow>sudo guix system reconfigure --no-substitutes ~/.config/guix/system.scm
<guestmeow>I have only the base packages, some i3 stuff and Icecat, but guix has been compiling for hours and hours (and this is a pretty good CPU). I see it compiling a lot of things that don't make sense like Inkscape, more than a dozen versions of Rustc, and a lot of libraries of Rust, Ruby and Python.
<guestmeow>Is this normal considering I am compiling everything?
<guestmeow>Running   ls /gnu/store | wc -l       says I have 19000 entries in there.
<guestmeow>Hello, I have just installed Guix System, copied the /etc/config.scm to a ~/.config/guix/system.scm and ran
<guestmeow>sudo guix system reconfigure --no-substitutes ~/.config/guix/system.scm
<guestmeow>(why? Because I like compiling)
<guestmeow>I have only the base packages, some i3 stuff and Icecat, but guix has been compiling for hours and hours (and this is a pretty good CPU). I see it compiling a lot of things that don't make sense like Inkscape, more than a dozen versions of Rustc, and a lot of libraries of Rust, Ruby and Python.
<guestmeow>Is this normal considering I am compiling everything?
<guestmeow>Running   ls /gnu/store | wc -l       says I have 19000 entries in there.
<futurile>gabber: don't recall seeing anything specific - imagine there's basic need to ensure it is compliant with GDPR - generally anonymouse I guess
<guestmeow>(dunno why it sent the message twice up there but ok)
<futurile>guestmeow: did you tell it --no-substitutes - if you did it will bootstrap everything
<futurile>guestmeow: don't know how costly that is - but we bootstrap from source - so for Rust it's going to go through a whole chain of them to the original one that was bootstrapped - it's a few for sure
<guestmeow>Oh right, I didn't consider it would have to recursively compile a bunch of stuff, my bad
<futurile>guestmeow: you know everyone lands up with the same outputs right - so you get bit-for-bit the same package as another user - unless you're making a local version there's not much upside - and you can use 'guix challenge' if you want to test that your local version hasn't been messed with
<guestmeow>Yeah I just kinda did it to feel the source-based xD But now I will probably use substitutes and chill with it, thank you
<futurile>guestmeow: no worries - good luck
<guestmeow>Before installing I had also read an article that someone is planning to add something like USE flags later this year and so I thought I might use Guix "gentoo-style"
<futurile>guestmeow: yeah, so that's "transformations" - we have a limited version already - it's for making a local version and then you can choose how you compile it and what options you send etc
<futurile>guestmeow: pushing my own blog post heh -> https://www.futurile.net/2023/12/05/guix-package-transformations/
<futurile>guestmeow: and then the use flags capabilities were an additional capability that a GSoC developer worked on
<guestmeow>Oh, didn't notice the GSoC article was from last year (https://guix.gnu.org/en/blog/2023/parameterized-packages-for-gnu-guix/)
<guestmeow>Very cool
<futurile>guestmeow: yeah they are experimental patches - so you can try them out and report back if they're of interest to you
<futurile>Can anyone get to debbugs?
<gabber>futurile: anymouse?
<futurile>gabber: sorry - anonymous - so was thinking that telemetry should not be using the users details without them agreeing to that
<gabber>ah, i see (: and i agree
<darwinsfinch>does the emacs window manager thing with GNU guix provide a basis for updating websites with rsync without using term or a shell? I would like to use this thing better.
<gabber>darwinsfinch: i never used the emacs window manager, but emacs on its own can be used to execute shell commands (like rsync) or even enables you to edit remote files locally (see TRAMP mode)
<jlicht>hey guix
<gabber>o/
<darwinsfinch>thanks
<darwinsfinch>I just used the M-X command term to send my new index.html to my server after I edited it in Emacs.
<darwinsfinch>I will investigate TRAMP mode
<gabber>darwinsfinch: IIRC you can just visit a file-path like /ssh:user@machine:/some-path/to/some-file and emacs will do the whole ssh thing for you
<darwinsfinch>ooo thanks!!
<gabber>HTH
<rekado>sneek: later tell civodul I've pushed a fix for the logs, and I'm working on replacing datatables now.
<sneek>Will do.
<thaenz>Is there an rss feed for package updates and additions like on Arch?
<ebrasca>Hello, I can't call packages installed using packages function inside home-environment. They only work when I use guix install packages
<ebrasca>Can I get some help with this?
<ebrasca>I like to use the guix home
<rekado>ebrasca: sounds like the necessary environment variables aren't set.
<ebrasca>rekado: How do I set them?
<ebrasca>rekado: Thanks for telling me I have not set some home-"environment" thing. I can't figure the thing I am missing.
<jakef>it would be setting the env vars in your shell
<jakef>if you have the guix home service home-bash-service-type, it will probably get set up correctly
<ebrasca>I have home-zsh-service-type
<gabber>thaenz: you can have a look at the git repository's log
<gabber>but i don't think there's an RSS feed (or similar)
<thaenz> https://git.savannah.gnu.org/cgit/guix.git/atom/?h=master
<thaenz>This looks good, thanks!
<graywolf>Hello, is debbugs down or is the problem on my end?
<gabber>futurile reported this a while ago here
<gabber>so it doesn't seem to be your end at fault
<graywolf>Ah, cool, thanks :)
<ebrasca>jakef: I think it is working now. I added (local-file "/home/ebrasca/.profile" "profile") to zprofile
<ebrasca>How do you update packages in guix home? Is it just guix pull and guix home reconfigure file.scm?
<Altadil>ebrasca: yes that’s it. :)
<sneek>Altadil, you have 2 messages!
<sneek>Altadil, apteryx says: it's been a while since I tried it myself; perhaps there's some bit of info missing from the recipe (like being part of a specific group?)
<sneek>Altadil, apteryx says: I've looked at past config.scm of mine and I don't see specific groups for QEMU, so I'm not sure why it wouldn't work.
<Altadil>apteryx: thanks for taking a look.
<zamfofex>What happens to emails sent to debbugs while it’s down? Do they get processes eventually, or are they lost?
<ieure>zamfofex, Your local MTA will retry.
<pfna>So, when packaging something that requires a build I wanna do in guix instead of with the default makefile, I can technically just insert a pre-build step to create the ingredient files prior to make being invoked, right?
<pfna>Crazy.
<apteryx>ACTION has lost hope on zram
<apteryx>it introduces lags which makes browsers even more intolerable on older hardware
<lilyp>pfna: yes, though depending on your use case a patch might be advised
<pfna>What is zram, apteryx?
<pfna>lilyp: Indeed. This is a codebase that just has one library built in the rust toolchain, so I'm going to try building it FOR the makefile instead of having to deal with cargo inside the build stage
<pfna>Are all rust modules and inputs supposed to be listed with their version numbers?
<pfna>(in both use-module statements and cargo-inputs lists)
<pfna>Ah, I see. Manual page on crates confirms it
<pfna>Better question, though: what is a "source-only" craet?
<pfna>crate**