2016-08-04 12:31:55 +02:00
|
|
|
{ stdenv, fetchFromGitLab, pkgconfig, cmake, gettext, cairo, pango, pcre
|
2016-09-11 23:24:51 +02:00
|
|
|
, glib , imlib2, gtk2, libXinerama , libXrender, libXcomposite, libXdamage
|
2016-08-04 12:31:55 +02:00
|
|
|
, libX11 , libXrandr, librsvg, libpthreadstubs , libXdmcp
|
|
|
|
, libstartup_notification , hicolor_icon_theme, wrapGAppsHook
|
2013-12-22 17:20:17 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "tint2-${version}";
|
2017-06-16 14:14:38 +02:00
|
|
|
version = "0.14.6";
|
2013-12-22 17:20:17 +01:00
|
|
|
|
2016-02-28 12:57:08 +01:00
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "o9000";
|
|
|
|
repo = "tint2";
|
2016-02-15 23:52:13 +01:00
|
|
|
rev = version;
|
2017-06-16 14:14:38 +02:00
|
|
|
sha256 = "0v7i8araj85cbl45icinvmsz5741cx2ybjgkx72m3xfcb9fqg69l";
|
2013-12-22 17:20:17 +01:00
|
|
|
};
|
2016-02-28 12:57:08 +01:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2016-04-14 13:01:32 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig cmake gettext wrapGAppsHook ];
|
|
|
|
|
2016-09-11 23:24:51 +02:00
|
|
|
buildInputs = [ cairo pango pcre glib imlib2 gtk2 libXinerama libXrender
|
2016-08-04 12:31:55 +02:00
|
|
|
libXcomposite libXdamage libX11 libXrandr librsvg libpthreadstubs
|
|
|
|
libXdmcp libstartup_notification hicolor_icon_theme ];
|
2016-04-14 13:01:32 +02:00
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
substituteInPlace CMakeLists.txt --replace /etc $out/etc
|
|
|
|
'';
|
|
|
|
|
|
|
|
prePatch = ''
|
2017-06-16 14:14:38 +02:00
|
|
|
for f in ./src/launcher/apps-common.c \
|
2016-04-14 13:01:32 +02:00
|
|
|
./src/launcher/icon-theme-common.c \
|
|
|
|
./themes/*tint2rc
|
|
|
|
do
|
|
|
|
substituteInPlace $f --replace /usr/share/ /run/current-system/sw/share/
|
|
|
|
done
|
|
|
|
'';
|
2013-12-22 17:20:17 +01:00
|
|
|
|
|
|
|
meta = {
|
2016-02-15 23:52:13 +01:00
|
|
|
homepage = https://gitlab.com/o9000/tint2;
|
2016-05-18 11:36:27 +02:00
|
|
|
description = "Simple panel/taskbar unintrusive and light (memory, cpu, aestetic)";
|
2013-12-22 17:20:17 +01:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2016-05-18 11:36:27 +02:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.romildo ];
|
2013-12-22 17:20:17 +01:00
|
|
|
};
|
|
|
|
}
|