Merge pull request #286469 from trofi/procmail-clang-16-fix

procmail: fix `clang-16` build

authored by Mario Rodas and committed by GitHub 4441de75 c08fd7c1

+11 -1
+11 -1
pkgs/applications/misc/procmail/default.nix
··· 1 - { lib, stdenv, fetchurl }: 1 + { lib, stdenv, fetchurl, fetchpatch }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "procmail"; ··· 8 8 url = "https://github.com/BuGlessRB/procmail/archive/refs/tags/v${version}.tar.gz"; 9 9 sha256 = "UU6kMzOXg+ld+TIeeUdx5Ih7mCOsVf2yRpcCz2m9OYk="; 10 10 }; 11 + 12 + patches = [ 13 + # Fix clang-16 and gcc-14 build failures: 14 + # https://github.com/BuGlessRB/procmail/pull/7 15 + (fetchpatch { 16 + name = "clang-16.patch"; 17 + url = "https://github.com/BuGlessRB/procmail/commit/8cfd570fd14c8fb9983859767ab1851bfd064b64.patch"; 18 + hash = "sha256-CaQeDKwF0hNOrxioBj7EzkCdJdsq44KwkfA9s8xK88g="; 19 + }) 20 + ]; 11 21 12 22 # getline is defined differently in glibc now. So rename it. 13 23 # Without the .PHONY target "make install" won't install anything on Darwin.