Skip to content

Commit

Permalink
alarm-clock-applet: fix build (#44872)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
rasendubi authored and xeji committed Aug 10, 2018
1 parent 12eb1e9 commit 6b1a04d
Showing 1 changed file with 21 additions and 7 deletions.
28 changes: 21 additions & 7 deletions pkgs/tools/misc/alarm-clock-applet/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
{ stdenv, fetchurl, makeWrapper, pkgconfig
{ stdenv, fetchFromGitHub
, pkgconfig
, autoconf
, automake111x
, libtool

, glib
, gtk2
, gst_all_1
Expand All @@ -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
Expand All @@ -34,8 +50,6 @@ stdenv.mkDerivation rec {
libnotify
libxml2
libunique
intltool
wrapGAppsHook
] ++ gst_plugins;

propagatedUserEnvPkgs = [ gnome2.GConf.out ];
Expand Down

0 comments on commit 6b1a04d

Please sign in to comment.