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