IRC channel logs
2025-01-30.log
back to list of logs
<cow_2001>(cond (hoot (use-module (some module)))) and it fails with "unbound variable: use-module" <cow_2001>of course use-module is unbound, i get this error for use-modules <cow_2001>how do i use cond-expand together with hoot? <jmes>I've been toying with the idea of a pure (or as pure as practically possible) Guile Wayland compositor for a while. It seems like something you Spritely folks might have thought about. Would it make any sense to forego wlroots in favour of a pure guile Wayland implementatation? <jfred>Take my opinion on this with a grain of salt because graphics programming is not at all my forte, but that sounds like it would be a very fun thing to have <jfred>...which could maybe use a Guile Wayland compositor as a building block? I dunno, I'm a bit out of my depth, but it's fun to think about ^^; <jmes>I'm *always* out of my depth... But yes, it's fun to wonder and muse. Using Guix made me want Guile everything. <jfred>Same. I've mashed together Guix code with my own code on occasion and it's so fun that that's possible/relatively straightforward <jmes>Yeah, I just keep enjoying Guix more the more I understand. The service extension system is awesome. It keeps pushing me closer to the idea of a fully integrated computing environment like the one you just linked. <jmes>Right now I'm trying to get darn input methods working for the umpteenth time. This time trying to write an fcitx5 Guix Home service to help me out. Wish me luck. <jfred>The service extension system is a part of Guix that I've only recently started to grok. It does seem really cool though <jmes>It took a while diving around the source for me to finally get how to use it, but yeah, it's great! The next thing I will have to do a deep dive on is package transformations. <jmes>Coming from Gentoo with simple patches I have much to learn. <jmes>ACTION feels guilty for the sort of off topic ranting <tsyesika>cow_2001: if you want to cond-expand some module imports or exports you'll need to use define-library <tsyesika>oh wait, use-modules. Sorry I'm very tired, probably not the best time to be giving advice on IRC haha :) I think you've just got a typo it's "use-modules" not use-module <tsyesika>if you're defining a library using define-module you need to use define-library instead :) <cow_2001>no, i used "use-modules". the "use-module" was a typo in the irc message <tsyesika>while define-library does support doing cond-expands inside I actually don't think it'd work for this as hoot requires the input to be a program not a library <tsyesika>I think this might be a dave question :) I'm out of my depth, sorry. We're at guix days and fosdem so we're not replying so much. I can ask him in person tomorrow and get back to you though