tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
polybar: mpd_clientlib -> libmpdclient
AndersonTorres
5 years ago
9ac26e0f
eef0796e
+60
-26
1 changed file
expand all
collapse all
unified
split
pkgs
applications
misc
polybar
default.nix
+60
-26
pkgs/applications/misc/polybar/default.nix
···
1
1
-
{ cairo, cmake, fetchFromGitHub, libXdmcp, libpthreadstubs, libxcb, pcre, pkg-config
2
2
-
, python3, lib, stdenv, xcbproto, xcbutil, xcbutilcursor, xcbutilimage
3
3
-
, xcbutilrenderutil, xcbutilwm, xcbutilxrm, makeWrapper
1
1
+
{ cairo
2
2
+
, cmake
3
3
+
, fetchFromGitHub
4
4
+
, libXdmcp
5
5
+
, libpthreadstubs
6
6
+
, libxcb
7
7
+
, pcre
8
8
+
, pkg-config
9
9
+
, python3
10
10
+
, lib
11
11
+
, stdenv
12
12
+
, xcbproto
13
13
+
, xcbutil
14
14
+
, xcbutilcursor
15
15
+
, xcbutilimage
16
16
+
, xcbutilrenderutil
17
17
+
, xcbutilwm
18
18
+
, xcbutilxrm
19
19
+
, makeWrapper
4
20
, removeReferencesTo
5
21
6
22
# optional packages-- override the variables ending in 'Support' to enable or
7
23
# disable modules
8
24
, alsaSupport ? true, alsaLib ? null
9
25
, githubSupport ? false, curl ? null
10
10
-
, mpdSupport ? false, mpd_clientlib ? null
26
26
+
, mpdSupport ? false, libmpdclient ? null
11
27
, pulseSupport ? false, libpulseaudio ? null
12
28
, iwSupport ? false, wirelesstools ? null
13
29
, nlSupport ? true, libnl ? null
···
16
32
17
33
assert alsaSupport -> alsaLib != null;
18
34
assert githubSupport -> curl != null;
19
19
-
assert mpdSupport -> mpd_clientlib != null;
35
35
+
assert mpdSupport -> libmpdclient != null;
20
36
assert pulseSupport -> libpulseaudio != null;
21
37
22
38
assert iwSupport -> ! nlSupport && wirelesstools != null;
···
37
53
fetchSubmodules = true;
38
54
};
39
55
40
40
-
meta = with lib; {
41
41
-
homepage = "https://polybar.github.io/";
42
42
-
description = "A fast and easy-to-use tool for creating status bars";
43
43
-
longDescription = ''
44
44
-
Polybar aims to help users build beautiful and highly customizable
45
45
-
status bars for their desktop environment, without the need of
46
46
-
having a black belt in shell scripting.
47
47
-
'';
48
48
-
license = licenses.mit;
49
49
-
maintainers = with maintainers; [ afldcr Br1ght0ne ];
50
50
-
platforms = platforms.linux;
51
51
-
};
52
52
-
53
56
buildInputs = [
54
54
-
cairo libXdmcp libpthreadstubs libxcb pcre python3 xcbproto xcbutil
55
55
-
xcbutilcursor xcbutilimage xcbutilrenderutil xcbutilwm xcbutilxrm
57
57
+
cairo
58
58
+
libXdmcp
59
59
+
libpthreadstubs
60
60
+
libxcb
61
61
+
pcre
62
62
+
python3
63
63
+
xcbproto
64
64
+
xcbutil
65
65
+
xcbutilcursor
66
66
+
xcbutilimage
67
67
+
xcbutilrenderutil
68
68
+
xcbutilwm
69
69
+
xcbutilxrm
56
70
57
71
(if alsaSupport then alsaLib else null)
58
72
(if githubSupport then curl else null)
59
59
-
(if mpdSupport then mpd_clientlib else null)
73
73
+
(if mpdSupport then libmpdclient else null)
60
74
(if pulseSupport then libpulseaudio else null)
61
75
62
76
(if iwSupport then wirelesstools else null)
···
69
83
(if i3Support || i3GapsSupport then makeWrapper else null)
70
84
];
71
85
72
72
-
postInstall = if (i3Support || i3GapsSupport) then ''
73
73
-
wrapProgram $out/bin/polybar \
74
74
-
--prefix PATH : "${if i3Support then i3 else i3-gaps}/bin"
75
75
-
'' else "";
86
86
+
postInstall = if i3Support
87
87
+
then ''wrapProgram $out/bin/polybar \
88
88
+
--prefix PATH : "${i3}/bin"
89
89
+
''
90
90
+
else if i3GapsSupport
91
91
+
then ''wrapProgram $out/bin/polybar \
92
92
+
--prefix PATH : "${i3-gaps}/bin"
93
93
+
''
94
94
+
else '''';
76
95
77
96
nativeBuildInputs = [
78
78
-
cmake pkg-config removeReferencesTo
97
97
+
cmake
98
98
+
pkg-config
99
99
+
removeReferencesTo
79
100
];
80
101
81
102
postFixup = ''
82
103
remove-references-to -t ${stdenv.cc} $out/bin/polybar
83
104
'';
105
105
+
106
106
+
meta = with lib; {
107
107
+
homepage = "https://polybar.github.io/";
108
108
+
description = "A fast and easy-to-use tool for creating status bars";
109
109
+
longDescription = ''
110
110
+
Polybar aims to help users build beautiful and highly customizable
111
111
+
status bars for their desktop environment, without the need of
112
112
+
having a black belt in shell scripting.
113
113
+
'';
114
114
+
license = licenses.mit;
115
115
+
maintainers = with maintainers; [ afldcr Br1ght0ne ];
116
116
+
platforms = platforms.linux;
117
117
+
};
84
118
}