@@ -1,27 +1,31 @@
1−{ stdenv, fetchurl, pkgconfig, cmake, pango, cairo, glib, imlib2, libXinerama
1+{ stdenv, fetchFromGitLab, pkgconfig, cmake, pango, cairo, glib, imlib2, libXinerama
22, libXrender, libXcomposite, libXdamage, libX11, libXrandr, gtk, libpthreadstubs
3−, libXdmcp, librsvg, fetchgit
3+, libXdmcp, librsvg, libstartup_notification
44}:
55
66stdenv.mkDerivation rec {
77 name = "tint2-${version}";
8− version = "0.12";
8+ version = "0.12.7";
99
10− src = fetchgit {
11− url = "https://gitlab.com/o9000/tint2.git";
10+ src = fetchFromGitLab {
11+ owner = "o9000";
12+ repo = "tint2";
1213 rev = version;
13− sha256 = "0pd84ydpqz2l6gkhj565nqi2xyiph8zfpn4xha60xshqpsg3pqjq";
14+ sha256 = "01wb1yy7zfi01fl34yzpn1d30fykcf8ivmdlynnxp5znqrdsqm2r";
1415 };
15−
16+
17+ enableParallelBuilding = true;
18+
1619 buildInputs = [ pkgconfig cmake pango cairo glib imlib2 libXinerama
1720 libXrender libXcomposite libXdamage libX11 libXrandr gtk libpthreadstubs
18− libXdmcp librsvg
21+ libXdmcp librsvg libstartup_notification
1922 ];
2023
2124 preConfigure =
2225 ''
2326 substituteInPlace CMakeLists.txt --replace /etc $out/etc
2427 '';
28+
2529 prePatch =
2630 ''
2731 substituteInPlace ./src/tint2conf/properties.c --replace /usr/share/ /run/current-system/sw/share/
@@ -29,11 +33,6 @@ stdenv.mkDerivation rec {
2933 substituteInPlace ./src/launcher/icon-theme-common.c --replace /usr/share/ /run/current-system/sw/share/
3034 '';
3135
32− cmakeFlags = [
33− "-DENABLE_TINT2CONF=0"
34− "-DENABLE_SN=0"
35− ];
36−
3736 meta = {
3837 homepage = https://gitlab.com/o9000/tint2;
3938 license = stdenv.lib.licenses.gpl2;