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