libgcrypt: fix riscv64-linux build

(cherry picked from commit 8fca7c6981)
This commit is contained in:
liberodark
2026-07-16 08:35:54 +02:00
committed by github-actions[bot]
parent 6464c4885e
commit 65653a257d

View File

@@ -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"