summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYestin L. Harrison <yestin@ylh.io>2022-07-20 20:14:32 -0700
committergithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2022-08-16 18:56:01 +0000
commit7fed2963d68493a03be3d7d27d11a876967762ae (patch)
tree73def94959276f7812bb0acbbeaa23e764a988b4
parentpywinrm: remove optional insecure dependency (kerberos) (diff)
downloadnixpkgs-origin/backport-182299-to-release-22.05.tar.gz
- 0.23.8 includes https://github.com/MusicPlayerDaemon/MPD/commit/c975d8b94316c86bf5950ed3abeba394e1263677 - said change fixes deprecation warnings introduced in the 12.0 sdk, using definitions from the 12.0 sdk - nixpkgs uses 10.12 and 11.0, neither of which are the 12.0 sdk - this will gracefully degrade into a no-op when that changes (cherry picked from commit 19b2875ec62a4215319a280f59a1d10a7e983489)
-rw-r--r--pkgs/servers/mpd/default.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/servers/mpd/default.nix b/pkgs/servers/mpd/default.nix
index 79a84f965bcd..82c5ac5ea5da 100644
--- a/pkgs/servers/mpd/default.nix
+++ b/pkgs/servers/mpd/default.nix
@@ -145,6 +145,12 @@ let
]
++ concatAttrVals features_ nativeFeatureDependencies;
+ postPatch = lib.optionalString (stdenv.isDarwin && lib.versionOlder stdenv.targetPlatform.darwinSdkVersion "12.0") ''
+ substituteInPlace src/output/plugins/OSXOutputPlugin.cxx \
+ --replace kAudioObjectPropertyElement{Main,Master} \
+ --replace kAudioHardwareServiceDeviceProperty_Virtual{Main,Master}Volume
+ '';
+
# Otherwise, the meson log says:
#
# Program zip found: NO