Re: A friendlier API for operating-system declarations

2024-02-25 Thread antlers
Thanks for the detailed response c: The blocker is that AFAIK we can't tell if a record-field was defined as thunk-ed or delay-ed outside of the expansion of the `define-record-type*' form that defines it, nor programatically access it's getter/setter (the pair `(guix records)` defines, which acco

Re: A friendlier API for operating-system declarations

2024-02-25 Thread Liliana Marie Prikler
Am Sonntag, dem 25.02.2024 um 10:49 -0800 schrieb antlers: > > 1.) It leaks `(guix records)`'s thunked/delayed field abstraction to > the end-user, which will confuse and regularly bite absolutely anyone > who tries to use it. > > 2.) Ideally we'd check that modified fields exist at compile-time.

Re: A friendlier API for operating-system declarations

2024-02-25 Thread antlers
> I don't believe that the syntax achieves its goals without this > mechanism I just realized my example doesn't actually include a use of recursive cut after all (whoops), and finding only 2 uses in my code-base, am open to considering SRFI-26 sufficient. This helps somewhat, but was not the bloc

Re: A friendlier API for operating-system declarations

2024-02-25 Thread antlers
> That looks like a nice syntax indeed. Is the code behind it small > enough to include it in (guix records)? Small enough? Yes (<100 LOC, inc. a handful of comments and tests). Suitable? No, I introduced it as "moderately-cursed" for a reason >u< But I appreciate the sentiment c: 1.) It leaks

Re: Debugging missing architecture support

2024-02-25 Thread Konrad Hinsen
Hi Ludo, > This shows an attempt to compile libwebp natively for aarch64-linux, > which fails on your machine. > > To cross compile, you would run: > > guix build python-jupyterlab --target=aarch64-linux-gnu That's already what I did, by giving the same option to "guix pack". I had someone che

Re: Packaging Hyprland

2024-02-25 Thread Efraim Flashner
On Sat, Feb 24, 2024 at 10:32:29PM +, John Kehayias wrote: > Slightly off topic, but for anyone wondering about my emacs keys issue: > > On Sat, Feb 24, 2024 at 04:01 PM, John Kehayias wrote: > > > Seems xremap can do it (which we have packaged) except it doesn't > > pick up different applica

Re: Initialization of go-team branch.

2024-02-25 Thread Efraim Flashner
On Fri, Feb 23, 2024 at 09:44:53AM +, Sharlatan Hellseher wrote: > > Hello Guix! > > After intitiating go-team branch (inspired by the rust-team) I started > pushing reviwed patches to it, which may require a full Golang rebuild. > My future plan is to update the existing Golang ecosystem to

Re: Building container images with nix2container

2024-02-25 Thread Ricardo Wurmus
Antoine Eiche writes: > In case you would like to try nix2container with Guix, in theory, you > would need to add the support of another input reference graph format > [6] and a write simple Guix derivations [7] calling the nix2container > binary. We have "guix pack" as part of Guix. It build

Re: Simple design question for schemers

2024-02-25 Thread Ricardo Wurmus
Hartmut Goebel writes: > Using a custom function "extend": > > (native-inputs > (extend %standard-trytond-native-inputs > trytond-account-invoice > trytond-purchase > trytond-sale)) We have a macro called MODIFY-INPUTS, which you could use, but C

Re: [Cuirass] JavaScript work

2024-02-25 Thread Ricardo Wurmus
Janneke Nieuwenhuizen writes: > I'm wondering though what the net gain of minification is > with current bandwiths. On the few sites that I use javascript on I just > ship the preferred readable code. JavaScript libraries can weigh several megabytes unminified. With minification applied to t

Re: A friendlier API for operating-system declarations

2024-02-25 Thread Liliana Marie Prikler
Am Montag, dem 19.02.2024 um 14:25 -0800 schrieb antlers: > ``` > (define (os-with-yubi parent users*) >   (modify-record parent >     (groups -> (cons (user-group (name "plugdev")) <>)) >     (users  -> (map (lambda (user) >   (if (member (user-account-name user) >