encfs: fix build with newer versions of clang

Apply patch to resolve the following error:

error: no matching constructor for initialization of 'std::shared_ptr<AbstractCipherKey>'

+10 -1
+10 -1
pkgs/tools/filesystems/encfs/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub 1 + { lib, stdenv, fetchFromGitHub, fetchpatch 2 2 , cmake, pkg-config, perl 3 3 , gettext, fuse, openssl, tinyxml2 4 4 }: ··· 13 13 repo = "encfs"; 14 14 owner = "vgough"; 15 15 }; 16 + 17 + patches = lib.optionals stdenv.cc.isClang [ 18 + # Fixes a build failure when building with newer versions of clang. 19 + # https://github.com/vgough/encfs/pull/650 20 + (fetchpatch { 21 + url = "https://github.com/vgough/encfs/commit/406b63bfe234864710d1d23329bf41d48001fbfa.patch"; 22 + hash = "sha256-VunC5ICRJBgCXqkr7ad7DPzweRJr1bdOpo1LKNCs4zY="; 23 + }) 24 + ]; 16 25 17 26 buildInputs = [ gettext fuse openssl tinyxml2 ]; 18 27 nativeBuildInputs = [ cmake pkg-config perl ];