diff options
author | Mario Rodas | 2024-02-08 18:52:01 -0500 |
---|---|---|
committer | GitHub | 2024-02-08 18:52:01 -0500 |
commit | 4441de75cb87dd21c4249989496ca193bc51f44b (patch) | |
tree | 2b30ab4917000b4eb62c75c0b0d23739a85f18e2 | |
parent | c08fd7c1688c06ad84d79cb7aed70ca2bdf71e1f (diff) | |
parent | f61fe0514a43640dbdfcd8bb7c2c21f1a09618d2 (diff) |
Merge pull request #286469 from trofi/procmail-clang-16-fix
procmail: fix `clang-16` build
-rw-r--r-- | pkgs/applications/misc/procmail/default.nix | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/pkgs/applications/misc/procmail/default.nix b/pkgs/applications/misc/procmail/default.nix index ea299d73cbb0..661bbd22be85 100644 --- a/pkgs/applications/misc/procmail/default.nix +++ b/pkgs/applications/misc/procmail/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchurl }: +{ lib, stdenv, fetchurl, fetchpatch }: stdenv.mkDerivation rec { pname = "procmail"; @@ -9,6 +9,16 @@ stdenv.mkDerivation rec { sha256 = "UU6kMzOXg+ld+TIeeUdx5Ih7mCOsVf2yRpcCz2m9OYk="; }; + patches = [ + # Fix clang-16 and gcc-14 build failures: + # https://github.com/BuGlessRB/procmail/pull/7 + (fetchpatch { + name = "clang-16.patch"; + url = "https://github.com/BuGlessRB/procmail/commit/8cfd570fd14c8fb9983859767ab1851bfd064b64.patch"; + hash = "sha256-CaQeDKwF0hNOrxioBj7EzkCdJdsq44KwkfA9s8xK88g="; + }) + ]; + # getline is defined differently in glibc now. So rename it. # Without the .PHONY target "make install" won't install anything on Darwin. postPatch = '' |