!lymvtcwDJ7ZA9Npq:lix.systems

Lix Development

402 Members
(Technical) development of Lix, the package manager, a Nix implementation. Please be mindful of ongoing technical conversations in this channel.135 Servers

Load older messages


SenderMessageTime
18 Sep 2025
@daylin:dayl.indaylin set a profile picture.21:17:32
@emilazy:matrix.orgemilyright21:34:10
@emilazy:matrix.orgemily (I stumbled into the old capnproto being an issue when I accidentally tried building from 2.93 with my Nixpkgs pinned to my CMake 4 work.) 21:34:43
@yuka:yuka.devYureka (she/her)Any opinions on baking a pasta binary into the Lix binary for static builds? Similar to the sandbox shell23:56:00
19 Sep 2025
@raitobezarius:matrix.orgraitobezariusI wonder how that meshes with pasta-path and what is the replacement here but it doesn't feel strange to me; is the use case completely self contained mono binary Lix?00:16:22
@aloisw:julia0815.dealoiswMaybe just disable the option then and make pasta unconditional?06:01:29
@yuka:yuka.devYureka (she/her)Basically yes07:54:23
@yuka:yuka.devYureka (she/her)Lix for remote building on a host where I am not privileged to create /nix/store/07:54:57
@yuka:yuka.devYureka (she/her) With the lix static bin/ added to path, and store = /home/.../store set in ~/.config/nix/nix.conf 07:55:54
@yuka:yuka.devYureka (she/her) I guess I can also set pasta_path = /path/to/pasta but it feels like a regression from the previous experience 07:56:39
@raitobezarius:matrix.orgraitobezariuspasta unconditional seems a bit dangerous to me because of the bugs we saw09:45:10
@raitobezarius:matrix.orgraitobezariussometimes not even under our control (e.g. kernel bug)09:45:16
@yuka:yuka.devYureka (she/her)for the sandbox shell, isn't the option to embed it just on top of the ability to change it at run-time later?09:46:23
@raitobezarius:matrix.orgraitobezarius
                #if HAVE_EMBEDDED_SANDBOX_SHELL
                if (i.second.source == "__embedded_sandbox_shell__") {
                    static unsigned char sh[] = {
                        #include "embedded-sandbox-shell.gen.hh"
                    };
                    auto dst = chrootRootDir + i.first;
                    createDirs(dirOf(dst));
                    writeFile(dst, std::string_view((const char *) sh, sizeof(sh)));
                    chmodPath(dst, 0555);
                } else
                #endif
                    bindPath(i.second.source, chrootRootDir + i.first, i.second.optional);

09:47:05
@raitobezarius:matrix.orgraitobezarius
#if defined(__linux__) && defined(SANDBOX_SHELL)
    sandboxPaths.setDefault(tokenizeString<StringSet>("/bin/sh=" SANDBOX_SHELL));
#endif
09:47:33
@raitobezarius:matrix.orgraitobezariuscorrect09:47:34
@raitobezarius:matrix.orgraitobezariusthere's a runtime composition09:47:39
@raitobezarius:matrix.orgraitobezariussounds like we could do mostly the same09:47:47
@raitobezarius:matrix.orgraitobezariusexcept that this time, this is not about writing a binary in the sandbox09:47:53
@raitobezarius:matrix.orgraitobezariusbut executing a binary which is mapped in our memory09:48:02
@yuka:yuka.devYureka (she/her)sounds good09:48:16
* @raitobezarius:matrix.orgraitobezarius nods09:48:20
@yuka:yuka.devYureka (she/her)I can take on this task and create a patch09:49:04
@raitobezarius:matrix.orgraitobezariusthanks!09:53:02
@yuka:yuka.devYureka (she/her)summarized the thing here https://git.lix.systems/lix-project/lix/issues/99609:56:04
@yuka:yuka.devYureka (she/her)and assigned myself09:56:16
@aloisw:julia0815.dealoisw It would only be unconditional for static builds with built-in pasta. But given that the sandbox shell also has a runtime option after all we could support (and default to) pasta-path = __embedded_pasta__ similarly in this case. 11:44:38
@bl1nk:matrix.orgbl1nk changed their profile picture.15:22:59
@bl1nk:matrix.orgbl1nk changed their profile picture.15:25:08
21 Sep 2025
@k900:0upti.meK900Can someone remind me why the flake is pinned to an old capnproto?16:39:22

Show newer messages


Back to Room ListRoom Version: 10