From e7b1e1997f2277e297068c5f0197611902e6bf33 Mon Sep 17 00:00:00 2001 From: Jason Felice Date: Tue, 22 Jun 2021 15:21:26 -0400 Subject: [PATCH] weechat: fix build on darwin --- pkgs/applications/networking/irc/weechat/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/applications/networking/irc/weechat/default.nix b/pkgs/applications/networking/irc/weechat/default.nix index ac6be7c97911..69fca696d4db 100644 --- a/pkgs/applications/networking/irc/weechat/default.nix +++ b/pkgs/applications/networking/irc/weechat/default.nix @@ -10,6 +10,7 @@ , rubySupport ? true, ruby , tclSupport ? true, tcl , extraBuildInputs ? [] +, fetchpatch }: let @@ -37,6 +38,15 @@ let sha256 = "0pck4lczkk52mgwa1n0habp1xqi9xsgsh5q6bbsjmdbandvy5vc8"; }; + patches = [ + # weechat 3.2 fails to build on Darwin, but is fixed for the next release: + (fetchpatch { + url = "https://github.com/weechat/weechat/commit/0b7e4977bef763993e361c23db0f52117b799949.patch"; + sha256 = "eVdrhr4mrqv+OkqYOv1E7mUkmzd5NC3LmZhbXJnCpFg="; + excludes = [ "ChangeLog.adoc" ]; + }) + ]; + outputs = [ "out" "man" ] ++ map (p: p.name) enabledPlugins; cmakeFlags = with lib; [