diff options
author | Yestin L. Harrison <yestin@ylh.io> | 2022-07-20 20:14:32 -0700 |
---|---|---|
committer | Franz Pletz <fpletz@fnordicwalking.de> | 2022-07-23 16:00:37 +0200 |
commit | ae74cf3bb5b00801c6b34a0d2a6b809ba0d30355 (patch) | |
tree | ca7b06833b651ed510976993626fd9e42f8080d7 /pkgs/servers/mpd | |
parent | 8af7abd5f7bf9c532f14a4479f57e52ec589b65f (diff) |
mpd: fix 0.23.8 on darwin
- 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
Diffstat (limited to 'pkgs/servers/mpd')
-rw-r--r-- | pkgs/servers/mpd/default.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/servers/mpd/default.nix b/pkgs/servers/mpd/default.nix index 79a84f965bcdf..82c5ac5ea5daa 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 |