Merge pull request #127825 from eraserhd/weechat-darwin-fix

weechat: fix build on darwin
This commit is contained in:
Sandro 2021-06-23 10:42:06 +02:00 committed by GitHub
commit 0e0bd273de
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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; [