mpd: 0.24.2 -> 0.24.3

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