Closed MrQubo closed 1 month ago
I've got more logs from tudor_cli
:
This doesn't sound like something caused by NixOS, this sounds like an unsupported Windows driver being relinked. Did you switch out the Window driver DLLs by chance?
EDIT: Actually, taking another look, it more so looks like the WinAPI resolver fails to initialize somehow, causing it to fail to resolve functions which are actually implemented. Resolver functions usually are registered using static constructor functions (see here), so there's a chance that those static constructors are no longer being invoked correctly. This might be related to the "some change to the build system" you referenced; I don't know what you changed, so I can't really help debug this further right now.
Thanks! You were exactly right. I compiled libtudor statically and the constructors weren't called. I've got it working now.
I have one more problem that could be NixOS specific, tudor-host-launcher.service
isn't started automatically and it needs be started manually. I don't see any WantedBy
in this service, is that how it's supposed to be?
Thanks! You were exactly right. I compiled libtudor statically and the constructors weren't called. I've got it working now.
I have one more problem that could be NixOS specific,
tudor-host-launcher.service
isn't started automatically and it needs be started manually. I don't see anyWantedBy
in this service, is that how it's supposed to be?
The service should automatically start once its D-Bus service is accessed, not on system start. Glad to hear it's working by the way!
Thank you! It's thanks to your big work here!
Ah, okay, it's mi first time packaging dbus. It seems like service files should go to share/dbus-1/system-services
not etc/dbus-1/system-services
on NixOS.
By the way, in net.reactivated.TudorHostLauncher.service.in
, shouldn't the line Exec=@INSTALL_DIR@/tudor_host_launcher
be replaced with Exec=/bin/false
? I think the tudor_host_launcher is started by the systemd service and not dbus service? I've replaced it with Exec=/bin/false
and everything still works fine for me.
journalctl
:uname -a
:Linux work 6.8.12 #1-NixOS SMP PREEMPT_DYNAMIC Thu May 30 07:49:53 UTC 2024 x86_64 GNU/Linux
I'm trying to make synaTudor work on NixOS. I cannot make much sense of this error though, so any help would be very appreciated. For context, I've made some changes to the build process to make it work on NixOS, so it might be possible that the issue was caused by my changes.