mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-20 15:41:16 +00:00
libgcrypt: fix riscv64-linux build (#542494)
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
lib,
|
||||
stdenv,
|
||||
fetchurl,
|
||||
fetchpatch,
|
||||
gettext,
|
||||
libgpg-error,
|
||||
enableCapabilities ? false,
|
||||
@@ -24,6 +25,16 @@ stdenv.mkDerivation rec {
|
||||
hash = "sha256-fOM8JJIiGgQ2+WqFACFenz49y1/SanV81BXnqEO6vV4=";
|
||||
};
|
||||
|
||||
patches = lib.optionals stdenv.hostPlatform.isRiscV64 [
|
||||
# Remove in next release
|
||||
# https://github.com/gpg/libgcrypt/commit/3f684fc6ab3ac98320e245a06b3563ad37ec56f5
|
||||
# zvkned AES corrupts CBC/CFB/CTR/OCB/XTS output on VLEN>128 hardware
|
||||
(fetchpatch {
|
||||
url = "https://github.com/gpg/libgcrypt/commit/3f684fc6ab3ac98320e245a06b3563ad37ec56f5.patch";
|
||||
hash = "sha256-1LSrIwsN0n5IBRDZ+9MJTEjzY+/T6LQO6hX1ke8hSuc=";
|
||||
})
|
||||
];
|
||||
|
||||
outputs = [
|
||||
"bin"
|
||||
"lib"
|
||||
|
||||
Reference in New Issue
Block a user