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
Haskell builder: Use $abi/$libname as --libsubdir #42224
Conversation
I don't understand what this change does, exactly, and why it apparently achieves better backpack support. |
@peti Please see @ezyang comment on the matter #40128 (comment). |
@alexbiehl Does the change work? :) Naively I'd expect this could cause more thrashing in Nix, because the default generated values for these are not very stable. |
@ezyang Yes it works! It will definitely trash the haskell libs in your nix store the first time you use it. But I haven't experience any others yet. |
@ezyang Can you expand on the thrashing a bit? Is this likely to be a source of impurities between otherwise identical nix builds on different machines or something? |
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.
I am basically in favor of this change. Before we merge, however, I would like to see a clear indication that the resulting packages work, particularly when used with ghcWithPackages
and ghcWithHoogle
because this path change has the potential to break assumptions in other code.
In other words, this change needs testing before it can go forward.
@alexbiehl We've been actively using this for a while, right? |
@shlevy correct. We didn't find any error, yet. But I don't know really know which parts of nixpkgs are stressed in our nix infrastructure. Specifically, I don't know if we use something like |
We rely on |
Well, if you are confident that these changes work properly, then please feel free to merge.
Merged into haskell-updates |
Motivation for this change
This is an attempt on #40128. I should definitely take a look at the second point of Edwards answer:
-rpath
for linux. Maybe some could help me there.--ghc-option
doesn't support path templates like$abi
or$libname
./cc @shlevy @grahamc
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)