2016-04-14 12:01:32 +01:00
|
|
|
{ stdenv, fetchFromGitLab, pkgconfig, cmake, gettext, pango, cairo, glib
|
|
|
|
, pcre , imlib2, libXinerama , libXrender, libXcomposite, libXdamage, libX11
|
|
|
|
, libXrandr, gtk, libpthreadstubs , libXdmcp, librsvg
|
2016-05-08 12:29:56 +01:00
|
|
|
, libstartup_notification, hicolor_icon_theme, wrapGAppsHook
|
2013-12-22 16:20:17 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "tint2-${version}";
|
2016-05-18 10:36:27 +01:00
|
|
|
version = "0.12.11";
|
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;
|
2016-05-18 10:36:27 +01:00
|
|
|
sha256 = "0gfxbxslc8h95q7cq84a69yd7qdhyks978l3rmk48jhwwixdp0hr";
|
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 ];
|
|
|
|
|
|
|
|
buildInputs = [ pango cairo glib pcre imlib2 libXinerama libXrender
|
|
|
|
libXcomposite libXdamage libX11 libXrandr gtk libpthreadstubs libXdmcp
|
2016-05-08 12:29:56 +01:00
|
|
|
librsvg libstartup_notification hicolor_icon_theme ];
|
2016-04-14 12:01:32 +01:00
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
substituteInPlace CMakeLists.txt --replace /etc $out/etc
|
|
|
|
'';
|
|
|
|
|
|
|
|
prePatch = ''
|
|
|
|
for f in ./src/tint2conf/properties.c \
|
|
|
|
./src/launcher/apps-common.c \
|
|
|
|
./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;
|
2016-05-18 10:36:27 +01:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.romildo ];
|
2013-12-22 16:20:17 +00:00
|
|
|
};
|
|
|
|
}
|