42 lines
1.2 KiB
Nix
Raw Normal View History

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