2020-07-01 15:24:01 +01:00
|
|
|
{ stdenv
|
|
|
|
, fetchFromGitLab
|
|
|
|
, pkg-config
|
|
|
|
, cmake
|
|
|
|
, gettext
|
|
|
|
, cairo
|
|
|
|
, pango
|
|
|
|
, pcre
|
|
|
|
, glib
|
|
|
|
, imlib2
|
|
|
|
, gtk2
|
|
|
|
, libXinerama
|
|
|
|
, libXrender
|
|
|
|
, libXcomposite
|
|
|
|
, libXdamage
|
|
|
|
, libX11
|
|
|
|
, libXrandr
|
|
|
|
, librsvg
|
|
|
|
, libpthreadstubs
|
|
|
|
, libXdmcp
|
|
|
|
, libstartup_notification
|
|
|
|
, wrapGAppsHook
|
2013-12-22 16:20:17 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "tint2";
|
2019-07-20 21:39:13 +01:00
|
|
|
version = "16.7";
|
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;
|
2019-07-20 21:39:13 +01:00
|
|
|
sha256 = "1937z0kixb6r82izj12jy4x8z4n96dfq1hx05vcsvsg1sx3wxgb0";
|
2013-12-22 16:20:17 +00:00
|
|
|
};
|
2016-02-28 11:57:08 +00:00
|
|
|
|
2020-07-01 15:24:01 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
cmake
|
|
|
|
gettext
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
2016-02-28 11:57:08 +00:00
|
|
|
|
2020-07-01 15:24:01 +01:00
|
|
|
buildInputs = [
|
|
|
|
cairo
|
|
|
|
pango
|
|
|
|
pcre
|
|
|
|
glib
|
|
|
|
imlib2
|
|
|
|
gtk2
|
|
|
|
libXinerama
|
|
|
|
libXrender
|
|
|
|
libXcomposite
|
|
|
|
libXdamage
|
|
|
|
libX11
|
|
|
|
libXrandr
|
|
|
|
librsvg
|
|
|
|
libpthreadstubs
|
|
|
|
libXdmcp
|
|
|
|
libstartup_notification
|
|
|
|
];
|
2016-04-14 12:01:32 +01:00
|
|
|
|
2020-07-01 15:41:44 +01:00
|
|
|
cmakeFlags = [
|
|
|
|
"-Ddocdir=share/doc/${pname}"
|
|
|
|
];
|
|
|
|
|
2017-09-20 10:35:19 +01:00
|
|
|
postPatch = ''
|
2017-06-16 13:14:38 +01:00
|
|
|
for f in ./src/launcher/apps-common.c \
|
2018-09-20 17:37:33 +01:00
|
|
|
./src/launcher/icon-theme-common.c
|
2016-04-14 12:01:32 +01:00
|
|
|
do
|
|
|
|
substituteInPlace $f --replace /usr/share/ /run/current-system/sw/share/
|
|
|
|
done
|
|
|
|
'';
|
2013-12-22 16:20:17 +00:00
|
|
|
|
2018-09-20 17:37:33 +01:00
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 02:11:51 +01: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)";
|
2018-09-20 17:37:33 +01:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.romildo ];
|
2013-12-22 16:20:17 +00:00
|
|
|
};
|
|
|
|
}
|