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
gdbgui: init at 0.9.0.1 #31959
gdbgui: init at 0.9.0.1 #31959
Conversation
This is my first "new package" PR so please let me know if I missed some requirement or convention. Thank you! |
Cool! It doesn't build for me (test phase fails):
Can you try with "nix.useSandbox = true" and see if you get the same issue? Looks like the tests does something that is unavailable in Nix sandboxes. |
Looking at the error message I assume it tries to access |
preCheck = '' | ||
export NIX_REDIRECTS=/etc/protocols=${pkgs.iana-etc}/etc/protocols \ | ||
LD_PRELOAD=${pkgs.libredirect}/lib/libredirect.so | ||
''; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This fixes tests for me as well. The only disadvantage I see that this method is not available on darwin (and maybe not required?). Can you make this optional on linux:
preCheck = lib.optionalString stdenv.isLinux ''
export NIX_REDIRECTS=/etc/protocols=${pkgs.iana-etc}/etc/protocols \
LD_PRELOAD=${pkgs.libredirect}/lib/libredirect.so
'';
then we can check with our pr bot, if it builds on darwin.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, amended!
Feature rich browser-based frontend with data structure visualizations (like DDD), and gdb terminal access. Compatible with C, C++, golang, Rust, fortran. Written in Python and JavaScript gdbgui is at the top of the GDB Front Ends list on https://sourceware.org/gdb/wiki/GDB%20Front%20Ends
@GrahamcOfBorg build gdbgui |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Success for system: x86_64-darwin
patching script interpreter paths in /nix/store/f1q2kd9apxbwwhdc0fnmddldnhf2mfxh-gdbgui-0.9.0.1
wrapping `/nix/store/f1q2kd9apxbwwhdc0fnmddldnhf2mfxh-gdbgui-0.9.0.1/bin/.gdbgui-wrapped'...
running install tests
running test
..
----------------------------------------------------------------------
Ran 2 tests in 0.024s
OK
/nix/store/f1q2kd9apxbwwhdc0fnmddldnhf2mfxh-gdbgui-0.9.0.1
Ok green light on darwin. Thanks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Success for system: x86_64-linux
checking for references to /tmp/nix-build-gdbgui-0.9.0.1.drv-0 in /nix/store/c6bidhm170discbv72j77rrshyj4kh5g-gdbgui-0.9.0.1...
wrapping `/nix/store/c6bidhm170discbv72j77rrshyj4kh5g-gdbgui-0.9.0.1/bin/.gdbgui-wrapped'...
running install tests
running test
..
----------------------------------------------------------------------
Ran 2 tests in 0.153s
OK
/nix/store/c6bidhm170discbv72j77rrshyj4kh5g-gdbgui-0.9.0.1
Feature rich browser-based frontend with data structure visualizations
(like DDD), and gdb terminal access. Compatible with C, C++, golang,
Rust, fortran. Written in Python and JavaScript
gdbgui is at the top of the GDB Front Ends
list on https://sourceware.org/gdb/wiki/GDB%20Front%20Ends
Motivation for this change
gdbgui is not present in nixpkgs
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)