haskell{,Packages}: use recurseIntoAttrs#437195
Conversation
wolfgangwalther
left a comment
There was a problem hiding this comment.
I think this simplification should be alright, but "eval and build" is certainly wrong. This is, apart from one additional build, merely a refactor. We already build and eval haskell packages.
Also, I'll want to give @sternenseemann to look at this when he finds the time to do so (no urgency).
|
I am completely out of my depth here, but would love to learn. The motivation is to simplify/unify packageset definitions? What would this PR change? Would there be more or less packages available on search.nixos.org, in nix search. Would there be more or less builds on hydra? |
|
Ah, okay. Search and hydra will go through every attrset which has recurseIntoAttr. So this actually looks like it makes sense. Just makes me wonder why it hadn’t been done like that before. |
|
Yeah, so the intent is simplification, making it easier to reason about both search and hydra builds: If an attrset is recursed into, it will show up on both. That's putting this information in a single place and not spread across multiple. This PR is working towards that goal (part of a bigger effort to make packages-config.nix smaller). |
Hydra may no longer need it due to a quirk of Overall this change seems fine. It could hurt |
Would still be needed with that change as as we do some filtering before it reaches hydra. nixpkgs/pkgs/top-level/release-lib.nix Lines 208 to 219 in 89dcabe |
There was a problem hiding this comment.
Overall this change seems fine. It could hurt
nix-envperformance which is maybe worth testing since it could be problematic for unrelated downstream use.
I looked at both Eval and the tarball, both of which heavily use nix-env. Both are exactly the same in this PR and a random different PR that was just merged to master, time-wise.
So I don't think this will make a difference.
Needs a rebase. And, as mentioned earlier, improved commit message, aka "refactor", not eval and build.
8fd6690 to
083ef5f
Compare
|
Let's see how it goes. |
This comment was marked as resolved.
This comment was marked as resolved.
(cherry picked from commit 99c0500)
|
Bisect says it somehow introduced an unevaluatable attribute. |
|
You are doing |
It does exist. It's value is an error: |
|
Ah, ok, that's odd :D |
Split from #434501
Things done
passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.Add a 👍 reaction to pull requests you find important.