Merge pull request #13018 from tathougies/master

Bump tint2 to 0.12
This commit is contained in:
joachifm 2016-03-02 16:55:32 +00:00
commit 0c1ed282f0

@ -1,30 +1,41 @@
{ stdenv, fetchurl, pkgconfig, cmake, pango, cairo, glib, imlib2, libXinerama
, libXrender, libXcomposite, libXdamage, libX11, libXrandr, gtk, libpthreadstubs
, libXdmcp
, libXdmcp, librsvg, fetchgit
}:
stdenv.mkDerivation rec {
name = "tint2-${version}";
version = "0.11";
version = "0.12";
src = fetchurl {
url = "http://tint2.googlecode.com/files/${name}.tar.bz2";
sha256 = "07a74ag7lhc6706z34zvqj2ikyyl7wnzisfxpld67ljpc1m6w47y";
src = fetchgit {
url = "https://gitlab.com/o9000/tint2.git";
rev = version;
sha256 = "0pd84ydpqz2l6gkhj565nqi2xyiph8zfpn4xha60xshqpsg3pqjq";
};
buildInputs = [ pkgconfig cmake pango cairo glib imlib2 libXinerama
libXrender libXcomposite libXdamage libX11 libXrandr gtk libpthreadstubs
libXdmcp
libXdmcp librsvg
];
preConfigure = "substituteInPlace CMakeLists.txt --replace /etc $out/etc";
preConfigure =
''
substituteInPlace CMakeLists.txt --replace /etc $out/etc
'';
prePatch =
''
substituteInPlace ./src/tint2conf/properties.c --replace /usr/share/ /run/current-system/sw/share/
substituteInPlace ./src/launcher/apps-common.c --replace /usr/share/ /run/current-system/sw/share/
substituteInPlace ./src/launcher/icon-theme-common.c --replace /usr/share/ /run/current-system/sw/share/
'';
cmakeFlags = [
"-DENABLE_TINT2CONF=0"
"-DENABLE_SN=0"
];
meta = {
homepage = http://code.google.com/p/tint2;
homepage = https://gitlab.com/o9000/tint2;
license = stdenv.lib.licenses.gpl2;
description = "A simple panel/taskbar unintrusive and light (memory / cpu / aestetic)";
platforms = stdenv.lib.platforms.linux;