alarm-clock-applet: fix build (#44872)

The build has been failing because sourceforge-served release include
-Werror=format=2 flag, which enabled -Werror=format-y2k, which in turn
stopped the build because of a debug log message formatting.

Building release from GitHub works fine.
This commit is contained in:
Alexey Shmalko 2018-08-10 20:37:48 +03:00 committed by xeji
parent 12eb1e96ce
commit 6b1a04d788

View File

@ -1,4 +1,9 @@
{ stdenv, fetchurl, makeWrapper, pkgconfig
{ stdenv, fetchFromGitHub
, pkgconfig
, autoconf
, automake111x
, libtool
, glib
, gtk2
, gst_all_1
@ -15,16 +20,27 @@ stdenv.mkDerivation rec {
version = "0.3.4";
name = "alarm-clock-applet-${version}";
src = fetchurl {
url = "http://launchpad.net/alarm-clock/trunk/${version}/+download/${name}.tar.gz";
sha256 = "1mrrw5cgv0izdmhdg83vprvbj6062yzk77b2nr1nx6hhmk00946r";
src = fetchFromGitHub {
owner = "joh";
repo = "alarm-clock";
rev = version;
sha256 = "18blvgy8hmw3jidz7xrv9yiiilnzcj65m6wxhw58nrnbcqbpydwn";
};
nativeBuildInputs = [
makeWrapper
pkgconfig
intltool
automake111x
autoconf
libtool
gnome2.gnome-common
wrapGAppsHook
];
preConfigure = "./autogen.sh";
buildInputs = [
glib
gtk2
@ -34,8 +50,6 @@ stdenv.mkDerivation rec {
libnotify
libxml2
libunique
intltool
wrapGAppsHook
] ++ gst_plugins;
propagatedUserEnvPkgs = [ gnome2.GConf.out ];