<Cairn>pkill9: Sorry for the late response. A lot of the libre-supporting laptops cost a little extra.
<Cairn>Purism has those Librem laptops, which are probably some of the most normal laptops that are built to run libre software. They're pretty average devices for the price though, which is kinda what I mean.
<dgcampea>not to mention, it's also an example on 'hosts-file' usage
<davidl>I need to replace all occurences of / with \/ in a phase for building a package: how can I do that? I thought I could use string-replace-substring from (ice-9 string-fun), but don't how to use that module in the phase.
<davidl>tricon: that doesn't show me how to do it, actually - I was probably unclear. I need to replace those occurences in a string Variable, not in a file. I will write the string variable to the file afterwards using substitute*. However, I just imported the (ice-9 string-fun) module at the top of the package module, then I could use it inside the build phase via (use-modules (ice-9 string-fun)).
<Gooberpatrol66>is there an easy way to edit launchers for programs? i try to edit in whiskermenu and i get "read-only filesystem"
<Cairn>Gooberpatrol66: Oh that's interesting. Could you post an example of one of the launchers?
<Cairn>Are they just strings, or are they whole files?
<Gooberpatrol66>so if i edit the kate launcher to "ENV_FOO=test /gnu/store/kpp8c4q1ymg54zpmgijbqkkqx189krq0-kate-20.04.1/bin/kate -b %U" it says "failed to create file "/home/nathan/.guix-profile/share/applications/org.kde.kate.desktop.5VRDR1": Read-only file system."
<pkill9>if you import a guile file with a (define (begin (system ... ))) statement, would it execute the system command when importing? i think it would, but i hav eno time to check
<KarlJoad>pkill9: I would think so, unless you wrap it with a thunk.
<Cairn>Sorry for the late response Gooberpatrol66. Not sure if this is good Guix form, but have you tried using "~/.guix-profile/bin/kate" instead?
<VesselWave>Hello! I am still tinkering with rust package definitions. I found a package with build dependency https://docs.rs/generator/0.7.1/generator, but guix manual only covers regular dependencies and dev dependencies. Where should I put it in #:cargo-inputs or #:cargo-development-inputs?
<Gooberpatrol66>Cairn: i can't edit the launcher so i can't change which kate it points to
<lagash>Swaywm support isn't included in official Guix yet, right? I recall at least one person's dotfiles having packaged it and had a sway desktop service and everything.. trying to remember who though..
<peterpolidoro>unmatched-paren I was wrong when I asked my question. I have a python package that installs a console script when I use pip, but does not install the console script when I install it as a guix package
<peterpolidoro>although that does not seem to be recommend practice according to packaging.python.org
<peterpolidoro>Although setup() supports a scripts keyword for pointing to pre-made scripts to install, the recommended approach to achieve cross-platform compatibility is to use console_scripts entry points (see below).
<peterpolidoro>"Use console_script entry points to register your script interfaces. You can then let the toolchain handle the work of turning these interfaces into actual scripts 2. The scripts will be generated during the install of your distribution."
<peterpolidoro>Is that just something that guix does not do? or am I just not setting up my guix package correctly?
<peterpolidoro>maybe if the file containing the console script function is also an executable script then it just happens to work
<peterpolidoro>that would be a nice guix feature though to automatically generate the scripts like pip does
<apteryx>rekado_: one reason I didn't do it myself is that I don't understand why it's necessary on berlin and not say, on my other servers. Is it because of the nginx cache?
<apteryx>shouldn't it implicitly trust its own signing key?
<peterpolidoro>console scripts seem to work when a guix package downloads a python package from pypi
***sneek_ is now known as sneek
***Rampoina is now known as Rampoina1
***Rampoina1 is now known as duioon
<shcv[m]>rekado_: my guix shell invocation is basically `guix shell --search-paths -D <package> -L <local dir containing package>`; could it be the use of -L that makes it recompute the definition each time?
<rekado_>apteryx: on berlin we have a huge cache of substitutes but no matching store items.
<rekado_>when using substitutes guix first checks if the signature is authorized
<rekado_>guix doesn’t know (or care) that these substitutes were generated on the same machine
<rekado_>it’s not necessary elsewhere because people generally either just have a thing in the store or not. They don’t generally have a stash of locally built substitutes that doesn’t also correspond to existing store items.