-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
haskellPackages.password: use crypton, disable scrypt on non-x86
- crypton is maintained, contrary to cryptonite - since the Hackage scrypt package uses SSE2, we can't build it on non-x86 platforms (non x86_64 even probably). The best option is to disable the Scrypt module. To prevent cabal from pulling in scrypt in spite of that, we need to patch build-depends to respect the flag.
- Loading branch information
1 parent
a3532c9
commit 169b24d
Showing
4 changed files
with
50 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
21 changes: 21 additions & 0 deletions
21
pkgs/development/haskell-modules/patches/password-3.0.4.0-scrypt-conditional.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
diff --git a/password/password.cabal b/password/password.cabal | ||
index 506457e..8fa978b 100644 | ||
--- a/password.cabal | ||
+++ b/password.cabal | ||
@@ -186,6 +186,8 @@ test-suite password-tasty | ||
other-modules: | ||
Scrypt | ||
Data.Password.Scrypt | ||
+ build-depends: | ||
+ scrypt | ||
ghc-options: | ||
-threaded -O2 -rtsopts -with-rtsopts=-N | ||
build-depends: | ||
@@ -195,7 +197,6 @@ test-suite password-tasty | ||
, bytestring | ||
, memory | ||
, quickcheck-instances | ||
- , scrypt | ||
, tasty | ||
, tasty-hunit | ||
, tasty-quickcheck |