!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

670 Members
Rust150 Servers

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


SenderMessageTime
11 Nov 2025
@robert:scs.ems.hostRobert Rose changed their display name from Robert Rose - 🏝️ bis 10.11.25 to Robert Rose.09:22:30
@oak:universumi.fioak 🏳️‍🌈♥️ changed their profile picture.19:20:27
@n8henrie:matrix.orgn8henrie

Hi all -- relative novice, hoping someone can help me run a rust binary built outside of nix in a nixosTest (as part of a bisect to fix a problem upstream). I've been using runCommand to copy it into the test image with autoPatchelfHook providing the dependencies and dontStrip = true, but still getting symbol lookup error: /nix/store/...espanso/bin/espanso: undefined symbol: _ZN12wxWindowBase14RegisterHotKeyEiii at runtime (even though wxGTK32 is in the buildInputs).

Including all the buildInputs for an xorg-based linux system from https://github.com/espanso/espanso/blob/dev/nix/espanso.nix

Anyone know why copying a binary that runs fine outside nix into a NixOS VM would give me this wx-related missing symbol error when all the required libraries seem to be linked (at least I don't see anything obviously missing based on ldd)?

20:41:54
@ghpzin:envs.net@ghpzin:envs.net Do you need to do something special during runtime to trigger it ? 21:29:43
@n8henrie:matrix.orgn8henrie To trigger the error? No, even a --version triggers it. 21:37:40
@ghpzin:envs.net@ghpzin:envs.net Can't reproduce, seems to work on both my machine and nixosTest.
Unless you use headless test for some reason.
21:41:10
@n8henrie:matrix.orgn8henrieNo, not headless. You are building espanso from source on a non-nixos system with standard Rust tooling, copying the binary while patching with autoPatchelfHook, and then running it in nix, and it's working?21:42:48
@ghpzin:envs.net@ghpzin:envs.net No, downloading .deb from releases page, doing all that and it runs.
Let me clean up things and push.
21:52:28
@n8henrie:matrix.orgn8henrieOh interesting. My ultimate goal is a git bisect on the source to fix an upstream bug that was introduced sometime in the last year and a half (ugh), so I'll need to be able to build from source, but that's a reasonable way to test. I'll give that a shot.21:54:02
@ghpzin:envs.net@ghpzin:envs.net
nix build github:ghpzin/nixpkgs/12e2905327c7efac6df82d587f0ef29f68a0cc43#nixosTests.espanso
xdg-open ./result/started.png
21:55:41
@ghpzin:envs.net@ghpzin:envs.net
nix build github:ghpzin/nixpkgs/12e2905327c7efac6df82d587f0ef29f68a0cc43#nixosTests.espanso
xdg-open ./result/started.png
I do not think binary in their release .deb should be that different from build result from other distro.
21:57:20

Show newer messages


Back to Room ListRoom Version: 6