lol

libgcrypt: Add pre-ARMv7 patch

Apparently the assembly-optimized functions use an opcode that doesn't
work on pre-ARMv7. Fix in next release.

+10 -1
+10 -1
pkgs/development/libraries/libgcrypt/default.nix
··· 1 - { stdenv, fetchurl, libgpgerror, enableCapabilities ? false, libcap }: 1 + { stdenv, fetchurl, fetchpatch, libgpgerror, enableCapabilities ? false, libcap }: 2 2 3 3 assert enableCapabilities -> stdenv.isLinux; 4 4 ··· 21 21 22 22 buildInputs = [ libgpgerror ] 23 23 ++ stdenv.lib.optional enableCapabilities libcap; 24 + 25 + # Shouldn't be needed after 1.8.1 26 + patches = if stdenv.isArm && stdenv.system != "armv7l-linux" 27 + then fetchpatch { 28 + url = "https://git.gnupg.org/cgi-bin/gitweb.cgi?p=libgcrypt.git;a=patch;h=4a7aa30ae9f3ce798dd886c2f2d4164c43027748"; 29 + name = "arm.patch"; 30 + sha256 = "1dq9s0xwpbg7s5sghvssmwh4v88x733zm6c8ab3flllq8h7c8fq5"; 31 + } 32 + else null; 24 33 25 34 # Make sure libraries are correct for .pc and .la files 26 35 # Also make sure includes are fixed for callers who don't use libgpgcrypt-config