@@ -1,30 +1,41 @@
11{ stdenv, fetchurl, pkgconfig, cmake, pango, cairo, glib, imlib2, libXinerama
22, libXrender, libXcomposite, libXdamage, libX11, libXrandr, gtk, libpthreadstubs
3−, libXdmcp
3+, libXdmcp, librsvg, fetchgit
44}:
55
66stdenv.mkDerivation rec {
77 name = "tint2-${version}";
8− version = "0.11";
8+ version = "0.12";
99
10− src = fetchurl {
11− url = "http://tint2.googlecode.com/files/${name}.tar.bz2";
12− sha256 = "07a74ag7lhc6706z34zvqj2ikyyl7wnzisfxpld67ljpc1m6w47y";
10+ src = fetchgit {
11+ url = "https://gitlab.com/o9000/tint2.git";
12+ rev = version;
13+ sha256 = "0pd84ydpqz2l6gkhj565nqi2xyiph8zfpn4xha60xshqpsg3pqjq";
1314 };
1415
1516 buildInputs = [ pkgconfig cmake pango cairo glib imlib2 libXinerama
1617 libXrender libXcomposite libXdamage libX11 libXrandr gtk libpthreadstubs
17− libXdmcp
18+ libXdmcp librsvg
1819 ];
1920
20− preConfigure = "substituteInPlace CMakeLists.txt --replace /etc $out/etc";
21+ preConfigure =
22+ ''
23+ substituteInPlace CMakeLists.txt --replace /etc $out/etc
24+ '';
25+ prePatch =
26+ ''
27+ substituteInPlace ./src/tint2conf/properties.c --replace /usr/share/ /run/current-system/sw/share/
28+ substituteInPlace ./src/launcher/apps-common.c --replace /usr/share/ /run/current-system/sw/share/
29+ substituteInPlace ./src/launcher/icon-theme-common.c --replace /usr/share/ /run/current-system/sw/share/
30+ '';
2131
2232 cmakeFlags = [
2333 "-DENABLE_TINT2CONF=0"
34+ "-DENABLE_SN=0"
2435 ];
2536
2637 meta = {
27− homepage = http://code.google.com/p/tint2;
38+ homepage = https://gitlab.com/o9000/tint2;
2839 license = stdenv.lib.licenses.gpl2;
2940 description = "A simple panel/taskbar unintrusive and light (memory / cpu / aestetic)";
3041 platforms = stdenv.lib.platforms.linux;