Unverified Commit 10363765 authored by Bobby Rong's avatar Bobby Rong
Browse files

xfce.xfce4-i3-workspaces-plugin: Fix build with gettext 0.25

parent cc944d2c
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
  lib,
  stdenv,
  fetchFromGitHub,
  gettext,
  pkg-config,
  intltool,
  gtk3,
@@ -24,6 +25,7 @@ stdenv.mkDerivation rec {
  };

  nativeBuildInputs = [
    gettext
    pkg-config
    intltool
    xfce4-dev-tools
@@ -37,6 +39,13 @@ stdenv.mkDerivation rec {
    i3ipc-glib
  ];

  patches = [
    # Fix build with gettext 0.25
    # https://hydra.nixos.org/build/302762031/nixlog/2
    # FIXME: remove when gettext is fixed
    ./gettext-0.25.patch
  ];

  enableParallelBuilding = true;

  meta = with lib; {
+21 −0
Original line number Diff line number Diff line
diff --git a/configure.ac.in b/configure.ac.in
index 7932c16..1778d38 100644
--- a/configure.ac.in
+++ b/configure.ac.in
@@ -24,6 +24,7 @@ AC_COPYRIGHT([Copyright (C) 2014
 AC_INIT([xfce4-i3-workspaces-plugin], [plugin_version], [https://github.com/denesb/xfce4-i3-workspaces-plugin/issues], [xfce4-i3-workspaces-plugin])
 AC_PREREQ([2.50])
 AC_REVISION([xfce4_panel_version_build])
+AC_CONFIG_MACRO_DIRS([m4])
 
 dnl ***************************
 dnl *** Initialize automake ***
@@ -31,6 +32,8 @@ dnl ***************************
 AM_INIT_AUTOMAKE([1.8 no-dist-gzip dist-bzip2 tar-ustar])
 AM_CONFIG_HEADER([config.h])
 AM_MAINTAINER_MODE()
+AM_GNU_GETTEXT_VERSION([0.21])
+AM_GNU_GETTEXT([external])
 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
 
 dnl **************************