mpd: 0.23.17 -> 0.24.2
* replace the patch revert with substituteInPlace calls * remove the boost dependency
This commit is contained in:
@@ -2,13 +2,11 @@
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
fetchpatch2,
|
||||
meson,
|
||||
ninja,
|
||||
pkg-config,
|
||||
glib,
|
||||
systemd,
|
||||
boost,
|
||||
fmt,
|
||||
buildPackages,
|
||||
# Darwin inputs
|
||||
@@ -202,30 +200,18 @@ let
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "mpd";
|
||||
version = "0.23.17";
|
||||
version = "0.24.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "MusicPlayerDaemon";
|
||||
repo = "MPD";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-1+eVLvwMp6mR38y39wV73rhPA998ip7clyyKcJ008z0=";
|
||||
sha256 = "sha256-6wEFgiMsEoWvmfH609d+UZY7jzqDoNmXalpHBipqTN0=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# Revert of https://github.com/MusicPlayerDaemon/MPD/commit/0aeda01ba6d22a8d9fc583faa67ffc6473869a43
|
||||
# We use a yajl fork that fixed this issue in the pkg-config manifest
|
||||
(fetchpatch2 {
|
||||
name = "revert-yajl-include-fix.patch";
|
||||
url = "https://github.com/MusicPlayerDaemon/MPD/commit/0aeda01ba6d22a8d9fc583faa67ffc6473869a43.diff";
|
||||
hash = "sha256-p/sYvWpr0GTw8gjt+W9FQysadOK/QOUp81ykTI50UYg=";
|
||||
revert = true;
|
||||
})
|
||||
];
|
||||
|
||||
buildInputs =
|
||||
[
|
||||
glib
|
||||
boost
|
||||
fmt
|
||||
# According to the configurePhase of meson, gtest is considered a
|
||||
# runtime dependency. Quoting:
|
||||
@@ -248,13 +234,25 @@ let
|
||||
depsBuildBuild = [ buildPackages.stdenv.cc ];
|
||||
|
||||
postPatch =
|
||||
lib.optionalString
|
||||
(stdenv.hostPlatform.isDarwin && lib.versionOlder stdenv.hostPlatform.darwinSdkVersion "12.0")
|
||||
''
|
||||
substituteInPlace src/output/plugins/OSXOutputPlugin.cxx \
|
||||
--replace kAudioObjectPropertyElement{Main,Master} \
|
||||
--replace kAudioHardwareServiceDeviceProperty_Virtual{Main,Master}Volume
|
||||
'';
|
||||
''
|
||||
# Basically a revert of https://github.com/MusicPlayerDaemon/MPD/commit/0aeda01ba6d22a8d9fc583faa67ffc6473869a43
|
||||
# We use a yajl fork that fixed this issue in the pkg-config manifest
|
||||
substituteInPlace \
|
||||
src/lib/yajl/Callbacks.hxx \
|
||||
src/lib/yajl/Handle.hxx \
|
||||
--replace-fail "<yajl_parse.h>" "<yajl/yajl_parse.h>"
|
||||
substituteInPlace \
|
||||
src/lib/yajl/Gen.hxx \
|
||||
--replace-fail "<yajl_gen.h>" "<yajl/yajl_gen.h>"
|
||||
''
|
||||
+
|
||||
lib.optionalString
|
||||
(stdenv.hostPlatform.isDarwin && lib.versionOlder stdenv.hostPlatform.darwinSdkVersion "12.0")
|
||||
''
|
||||
substituteInPlace src/output/plugins/OSXOutputPlugin.cxx \
|
||||
--replace kAudioObjectPropertyElement{Main,Master} \
|
||||
--replace kAudioHardwareServiceDeviceProperty_Virtual{Main,Master}Volume
|
||||
'';
|
||||
|
||||
# Otherwise, the meson log says:
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user