Skip to content

Commit

Permalink
Merge pull request NixOS#261174 from ncfavier/weechat
Browse files Browse the repository at this point in the history
weechat: 4.0.5 -> 4.1.0
  • Loading branch information
ncfavier authored Oct 24, 2023
2 parents 185acbc + d8ded7f commit 187acf4
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pkgs/applications/networking/irc/weechat/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,19 @@ let
in
assert lib.all (p: p.enabled -> ! (builtins.elem null p.buildInputs)) plugins;
stdenv.mkDerivation rec {
version = "4.0.5";
version = "4.1.0";
pname = "weechat";

hardeningEnable = [ "pie" ];

src = fetchurl {
url = "https://weechat.org/files/src/weechat-${version}.tar.xz";
hash = "sha256-PXLmGwVjHavcKDIxdo+TioVUSyfjH6v+E8V7TfXF47s=";
hash = "sha256-AwSC5bjw9pxr/Upja2+m12tkqeweF58auqNbGrONHhA=";
};

# Why is this needed? https://github.com/weechat/weechat/issues/2031
patches = lib.optional gettext.gettextNeedsLdflags ./gettext-intl.patch;

outputs = [ "out" "man" ] ++ map (p: p.name) enabledPlugins;

cmakeFlags = with lib; [
Expand Down
12 changes: 12 additions & 0 deletions pkgs/applications/networking/irc/weechat/gettext-intl.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff --git a/cmake/FindGettext.cmake b/cmake/FindGettext.cmake
index 358734688..ffcbf7ef4 100644
--- a/cmake/FindGettext.cmake
+++ b/cmake/FindGettext.cmake
@@ -42,6 +42,7 @@ find_path(LIBINTL_INCLUDE
)

set(CMAKE_REQUIRED_INCLUDES ${LIBINTL_INCLUDE})
+set(CMAKE_REQUIRED_FLAGS "-lintl")

check_include_files(libintl.h HAVE_LIBINTL_H)

0 comments on commit 187acf4

Please sign in to comment.