Embed fzf binary #24

Open
opened 2026-05-20 19:26:07 +02:00 by maleszka · 1 comment
Owner

wbij uses quite new features of fzf and my friends have hard time setting up wbij, because default fzf version in ubuntu and debian is too old.

fzf is GO application and can be built into a statically-linked binary. I've managed to do so with attached PKGBUILD.

We can embed fzf binary with @embedFile, write it to a temporary file, and then execute it with std.process.Child.run as we do currently. Temporary file creation can be done like in std.fs.AtomicFile or like in persistance.zig.

@kbity what do you think?

wbij uses quite new features of fzf and my friends have hard time setting up wbij, because default fzf version in ubuntu and debian is too old. fzf is GO application and can be built into a statically-linked binary. I've managed to do so with attached PKGBUILD. We can embed fzf binary with `@embedFile`, write it to a temporary file, and then execute it with `std.process.Child.run` as we do currently. Temporary file creation can be done like in `std.fs.AtomicFile` or like in `persistance.zig`. @kbity what do you think?
Collaborator

jsyk: i've already started work on this; i've decided to just use std.fs.AtomicFile for now, since pulling out the wbij.api.persistence.HierarchicalFileStore feels like overkill for a single file

note to myself: the code i'm intending to push will have to be refactored in #13, refer to https://codeberg.org/ziglang/zig/pulls/30686

jsyk: i've already started work on this; i've decided to just use `std.fs.AtomicFile` for now, since pulling out the `wbij.api.persistence.HierarchicalFileStore` feels like overkill for a single file note to myself: the code i'm intending to push will have to be refactored in #13, refer to https://codeberg.org/ziglang/zig/pulls/30686
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
maleszka/wbij#24
No description provided.