-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
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
haskellPackages.cryptonite: fix compilation with avx #204239
haskellPackages.cryptonite: fix compilation with avx #204239
Conversation
I think cryptonite is already building on the |
yes and yes. I am setting nixpkgs.config.gcc.arch to skyflake and in all haskell packages I am using this was the only build failure. |
I'd like to wait until the cryptonite maintainer replies to haskell-crypto/cryptonite#373 before merging this in. It is not clear to me the ramifications of this change (or why it was changed originally). |
@trofi already commented on the idea of the fix a while ago haskell-crypto/cryptonite#347 (comment) |
As far as I can tell, trofi isn't a maintainer of cryptonite? |
No, but the quoted commit message confirms the fix and the maintainers are usually a bit slow to respond and I don't really want to wait potentially multiple weeks. |
I don't feel comfortable merging a change to a widely-used crypto library in Haskell without at least the upstream maintainer commenting on it (especially for a use-case that most users won't be affected by). Although cryptonite is somewhat known for having slow reviews of PRs, so I can understand your frustration... |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: |
@cdepillabout so nothing really happened in two months and there are more and more people that need this patch. What do we do? |
cd4b80a
to
fb2ae66
Compare
A lot of upstream projects don't include a patch for something downstream users “need” – our patching should be within reason. Edit: To clarify, I still don't think it is reasonable for us to merge this revert of an upstream change without comment from upstream. Additionally, it is fair to say that the “need” for this change is exclusive to a handful of people that recompile the entirety of nixpkgs with added compiler flags. Having an overlay for that purpose is probably tolerable. |
What are we doing now that the repository is archived for a crypto those security relevant package? |
It probably makes sense to replace cryptonite with crypton, which is a fork that appears to be maintained: Although crypton probably still has the same issue as cryptonite, so I guess a new issue should be filed. |
Hackage has the ability to deal with an unmaintained package. We'll just have to see what happens. |
Description of changes
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)nixos/doc/manual/md-to-db.sh
to update generated release notes