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

[WIP] Fix nixpkgs evaluate #32019

Closed
wants to merge 6 commits into from
Closed

Conversation

danbst
Copy link
Contributor

@danbst danbst commented Nov 25, 2017

Motivation for this change

#31884
I wanted to do a query on all packages to get some derivation attributes but found that some attribute values in all-packages.nix don't evaluate.

Also, this fixes some obscure bugs with .override, see #11226 (comment)

Things done

This is an attempt to fix evaluation, but it is more like proof-of-concept and not really mergeable.
Especially the removed cross-compilation stuff may be show-stopper, but I hope there should be workarounds (cc @Ericson2314)

This mostly moves asserts and throws inside buildInputs attribute, so we delay evaluation failure to step when derivation is about to evalute.
Sorry, I'm not proficient in git, so ignore python-collision related commit. I'll remove it in next PR

@Ericson2314
Copy link
Member

I'm sympathetic to the idea that perhaps we are overusing exceptions, but these fixes are rather verbose and ungainly. I read a bit of the thread this came from, but will need to dive into it further to see what the objective is.

@danbst
Copy link
Contributor Author

danbst commented Feb 12, 2018

I'm closing this as it bitrots. I may resume the work if there will be anyone else who'd like to use Nixpkgs as knowledge database

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.

None yet

2 participants