Skip to content
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

nixseparatedebuginfod: new module #1242

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

midchildan
Copy link
Contributor

This creates a new module for nixseparatedebuginfod to aid with debugging. It launches nixseparatedebuginfod and prepends the server URL to the DEBUGINFOD_URLS environment variable.

Comment on lines +20 to +22
# The Nix store needs to be indexed by nixseparatedebuginfod for debug outputs from local
# derivations to be served. This can take a few minutes.
process.before = "${lib.getExe cfg.package} --index-only";
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added a test that fetches debuginfo from the server, but I'm not sure if this is a good idea. nixseparatedebuginfod needs to index the Nix store before it can serve debuginfos for locally built derivations. This can "take a few minutes" according to the official README. On my machine, it took a little more than a minute so I set the timeout to 2 minutes. The actual time will likely depend on the size of the Nix store and I don't know if 2 minutes is going to be enough, though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant