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