Merge pull request #152749 from elohmeier/libnacl-32bitfix
python3Packages.libnacl: fix build on 32-bit platforms
This commit is contained in:
commit
00ed6dd217
1 changed files with 10 additions and 0 deletions
|
@ -2,6 +2,7 @@
|
|||
, stdenv
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, fetchpatch
|
||||
, libsodium
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
@ -17,6 +18,15 @@ buildPythonPackage rec {
|
|||
sha256 = "sha256-nttR9PQimhqd2pByJ5IJzJ4RmSI4y7lcX7a7jcK+vqc=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# Fixes build on 32-bit platforms
|
||||
(fetchpatch {
|
||||
name = "fix-crypto_kdf_derive_from_key-32bit.patch";
|
||||
url = "https://github.com/saltstack/libnacl/commit/e8a1f95ee1d4d0806fb6aee793dcf308b05d485d.patch";
|
||||
sha256 = "sha256-z6TAVNfPcuWZ/hRgk6Aa8I1IGzne7/NYnUOOQ3TjGVU=";
|
||||
})
|
||||
];
|
||||
|
||||
buildInputs = [ libsodium ];
|
||||
|
||||
postPatch =
|
||||
|
|
Loading…
Reference in a new issue