-
-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use system chdman if available, fails to run due to libSDL2 dependency #1398
Comments
Unfortunately, this is expected, and isn't a NixOS-specific problem. I have spent easily dozens of hours trying to get If you happen to know how your binary was built I'd love to know, otherwise, let me think on a solution here. There's a small footer in the supported archives section that mentions you need to install SDL2: https://igir.io/input/reading-archives/#supported-types-for-reading. I haven't found a better place to put that instruction, and I don't think it would be appropriate for Igir to attempt installation on your behalf. |
SDL2 is correct.
But NixOS is unfortunately pretty special, because several versions of anything can exist at all times, the
So yes, I can make it work by putting a specific SDL2 version into nix-ld, but this is not exactly desired. |
I don't think I understood your response. Is that the current compiled version of https://github.com/emmercm/chdman-js will never work with NixOS, or that SDL2 isn't auto-installed as part of Igir? |
Nix does not run traditional dynamically linked ELF binaries without workarounds, because there could be a dozen different versions of
The easiest way to work around this is to check if |
My worry with that would be if the user's version of |
might also be a good idea to allow specifying a path somehow (environment?) for external tools in nix you can just write something like would certainly simplify #1410 and let you build everything from scratch properly (nixpkgs doesn't generally like binary dependencies if they can be avoided) the current package seems orphaned and very outdated, but seems to use the (autp-patched) binaries included |
Paste the command
npx igir@latest copy zip report --dat DAT/*.zip --input Oxy/ --output Emulation/ --dir-dat-name
Describe the bug
chdman is available in path, but igir attempts to use one shipped via npm and falls flat on its face, because NixOS
Expected behavior
igir checks path for tools it may need and prefers to use those; or ships static builds
Debug logs
N/A
DAT(s) used
N/A
igir version
v3.0.1
Node.js version
nixpkgs#nodejs_20
Operating system
NixOS 24.05 (Uakari)
Additional context
No response
The text was updated successfully, but these errors were encountered: