!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

671 Members
Rust151 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
14 May 2025
@curid:matrix.org@curid:matrix.orgTo produce portable binaries17:20:50
@aloisw:julia0815.de@aloisw:julia0815.de The binaries are any more or less portable when you do that, since they still rely on the glibc being in the /nix/store. If you want to build portable binaries using Nix the best choice is probably static builds with musl. 17:21:52
@curid:matrix.org@curid:matrix.org hehe patchelf --set-interpreter "/lib64/ld-linux-x86-64.so.2" "$file" 17:22:40
@curid:matrix.org@curid:matrix.orgI admit that it's rather cursed, but it has worked so far17:23:41
@qyliss:fairydust.spaceAlyssa RossIs pkgsStatic not an option?17:23:52
@curid:matrix.org@curid:matrix.orgbinary uses runtime linking17:24:27
@curid:matrix.org@curid:matrix.org* app needs runtime linking17:25:05
@curid:matrix.org@curid:matrix.orgI guess I'll vendor rust-overlay if nobody has a better idea17:28:35
@k900:0upti.meK900I feel like it might be a better idea to build a custom stdenv17:29:28

Show newer messages


Back to Room ListRoom Version: 6