1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
|
{ lib, stdenv
, fetchFromGitLab
, fetchpatch
, pkg-config
, cmake
, gettext
, cairo
, pango
, pcre
, glib
, imlib2
, gtk3
, libXinerama
, libXrender
, libXcomposite
, libXdamage
, libX11
, libXrandr
, librsvg
, libpthreadstubs
, libXdmcp
, libstartup_notification
, wrapGAppsHook
}:
stdenv.mkDerivation rec {
pname = "tint2";
version = "17.1.3";
src = fetchFromGitLab {
owner = "nick87720z";
repo = "tint2";
rev = version;
hash = "sha256-9sEe/Gnj+FWLPbWBtfL1YlNNC12j7/KjQ40xdkaFJVQ=";
};
patches = [
# Fix crashes with glib >= 2.76
# https://patchespromptly.com/glib2/
# https://gitlab.com/nick87720z/tint2/-/issues/4
(fetchpatch {
url = "https://gitlab.com/nick87720z/tint2/uploads/7de4501a4fa4fffa5ba8bb0fa3d19f78/glib.patch";
hash = "sha256-K547KYlRkVl1s2THi3ZCRuM447EFJwTqUEBjKQnV8Sc=";
})
];
nativeBuildInputs = [
pkg-config
cmake
gettext
wrapGAppsHook
];
buildInputs = [
cairo
pango
pcre
glib
imlib2
gtk3
libXinerama
libXrender
libXcomposite
libXdamage
libX11
libXrandr
librsvg
libpthreadstubs
libXdmcp
libstartup_notification
];
cmakeFlags = [
"-Ddocdir=share/doc/${pname}"
];
postPatch = ''
for f in ./src/launcher/apps-common.c \
./src/launcher/icon-theme-common.c
do
substituteInPlace $f --replace /usr/share/ /run/current-system/sw/share/
done
'';
meta = with lib; {
homepage = "https://gitlab.com/nick87720z/tint2";
description = "Simple panel/taskbar unintrusive and light (memory, cpu, aestetic)";
license = licenses.gpl2Only;
platforms = platforms.linux;
maintainers = [ maintainers.romildo ];
};
}
|