tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
mpd: 0.24.2 -> 0.24.3
25huizengek1
8 months ago
909c704f
1947acf9
+20
-33
1 changed file
expand all
collapse all
unified
split
pkgs
servers
mpd
default.nix
+20
-33
pkgs/servers/mpd/default.nix
···
50
50
pcre2,
51
51
libgcrypt,
52
52
expat,
53
53
-
# Services
54
54
-
yajl,
53
53
+
nlohmann_json,
54
54
+
zlib,
55
55
+
libupnp,
55
56
# Client support
56
57
libmpdclient,
57
58
# Tag support
···
116
117
qobuz = [
117
118
curl
118
119
libgcrypt
119
119
-
yajl
120
120
-
];
121
121
-
soundcloud = [
122
122
-
curl
123
123
-
yajl
120
120
+
nlohmann_json
124
121
];
125
122
# Client support
126
123
libmpdclient = [ libmpdclient ];
127
124
# Tag support
128
128
-
id3tag = [ libid3tag ];
125
125
+
id3tag = [
126
126
+
libid3tag
127
127
+
zlib
128
128
+
];
129
129
# Misc
130
130
dbus = [ dbus ];
131
131
expat = [ expat ];
···
134
134
sqlite = [ sqlite ];
135
135
syslog = [ ];
136
136
systemd = [ systemd ];
137
137
-
yajl = [ yajl ];
138
137
zeroconf = [
139
138
avahi
140
139
dbus
···
197
196
in
198
197
stdenv.mkDerivation rec {
199
198
pname = "mpd";
200
200
-
version = "0.24.2";
199
199
+
version = "0.24.3";
201
200
202
201
src = fetchFromGitHub {
203
202
owner = "MusicPlayerDaemon";
204
203
repo = "MPD";
205
204
rev = "v${version}";
206
206
-
sha256 = "sha256-6wEFgiMsEoWvmfH609d+UZY7jzqDoNmXalpHBipqTN0=";
205
205
+
sha256 = "sha256-lbYQ3fHq1Z6i3zVdLiO9q+3t2BkREwvgOHUVfTJniNg=";
207
206
};
208
207
209
208
buildInputs = [
···
214
213
#
215
214
# Run-time dependency GTest found: YES 1.10.0
216
215
gtest
216
216
+
libupnp
217
217
] ++ concatAttrVals features_ featureDependencies;
218
218
219
219
nativeBuildInputs = [
···
225
225
depsBuildBuild = [ buildPackages.stdenv.cc ];
226
226
227
227
postPatch =
228
228
-
''
229
229
-
# Basically a revert of https://github.com/MusicPlayerDaemon/MPD/commit/0aeda01ba6d22a8d9fc583faa67ffc6473869a43
230
230
-
# We use a yajl fork that fixed this issue in the pkg-config manifest
231
231
-
substituteInPlace \
232
232
-
src/lib/yajl/Callbacks.hxx \
233
233
-
src/lib/yajl/Handle.hxx \
234
234
-
--replace-fail "<yajl_parse.h>" "<yajl/yajl_parse.h>"
235
235
-
substituteInPlace \
236
236
-
src/lib/yajl/Gen.hxx \
237
237
-
--replace-fail "<yajl_gen.h>" "<yajl/yajl_gen.h>"
238
238
-
''
239
239
-
+
240
240
-
lib.optionalString
241
241
-
(stdenv.hostPlatform.isDarwin && lib.versionOlder stdenv.hostPlatform.darwinSdkVersion "12.0")
242
242
-
''
243
243
-
substituteInPlace src/output/plugins/OSXOutputPlugin.cxx \
244
244
-
--replace kAudioObjectPropertyElement{Main,Master} \
245
245
-
--replace kAudioHardwareServiceDeviceProperty_Virtual{Main,Master}Volume
246
246
-
'';
228
228
+
lib.optionalString
229
229
+
(stdenv.hostPlatform.isDarwin && lib.versionOlder stdenv.hostPlatform.darwinSdkVersion "12.0")
230
230
+
''
231
231
+
substituteInPlace src/output/plugins/OSXOutputPlugin.cxx \
232
232
+
--replace kAudioObjectPropertyElement{Main,Master} \
233
233
+
--replace kAudioHardwareServiceDeviceProperty_Virtual{Main,Master}Volume
234
234
+
'';
247
235
248
236
# Otherwise, the meson log says:
249
237
#
···
272
260
++ map (x: "-D${x}=enabled") features_
273
261
++ map (x: "-D${x}=disabled") (lib.subtractLists features_ knownFeatures)
274
262
++ lib.optional (builtins.elem "zeroconf" features_) "-Dzeroconf=avahi"
275
275
-
++ lib.optional (builtins.elem "systemd" features_) "-Dsystemd_system_unit_dir=etc/systemd/system";
263
263
+
++ lib.optional (builtins.elem "systemd" features_) "-Dsystemd_system_unit_dir=etc/systemd/system"
264
264
+
++ lib.optional (builtins.elem "qobuz" features_) "-Dnlohmann_json=enabled";
276
265
277
266
passthru.tests.nixos = nixosTests.mpd;
278
267
···
321
310
"id3tag"
322
311
"expat"
323
312
"pcre"
324
324
-
"yajl"
325
313
"sqlite"
326
326
-
"soundcloud"
327
314
"qobuz"
328
315
]
329
316
++ lib.optionals stdenv.hostPlatform.isLinux [