webrtc-audio-processing: 0.3 -> 0.3.1

Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/webrtc-audio-processing/versions.

Also remove isAarch32 configure hack since it is no longer applicable after
https://cgit.freedesktop.org/pulseaudio/webrtc-audio-processing/commit/?id=ff77a85c28564d939d554ba264480d1876cbc316

Also fix Darwin build

Signed-off-by: Jan Tojnar <jtojnar@gmail.com>
This commit is contained in:
R. RyanTM 2018-08-08 00:45:08 -07:00 committed by Jan Tojnar
parent 20f1388c3f
commit fbe47c8479
No known key found for this signature in database
GPG Key ID: 7FAB2A15F7A607A4

View File

@ -1,18 +1,16 @@
{ stdenv, fetchurl }:
{ stdenv, fetchurl, darwin }:
stdenv.mkDerivation rec {
name = "webrtc-audio-processing-0.3";
name = "webrtc-audio-processing-0.3.1";
src = fetchurl {
url = "https://freedesktop.org/software/pulseaudio/webrtc-audio-processing/${name}.tar.xz";
sha256 = "1yl0187xjh1j2zkb7v9cs9i868zcaj23pzn4a36qhzam9wfjjvkm";
sha256 = "1gsx7k77blfy171b6g3m0k0s0072v6jcawhmx1kjs9w5zlwdkzd0";
};
# Avoid this error:
# signal_processing/filter_ar_fast_q12_armv7.S:88: Error: selected processor does not support `sbfx r11,r6,#12,#16' in ARM mode
patchPhase = stdenv.lib.optionalString stdenv.isAarch32 ''
substituteInPlace configure --replace 'armv7*|armv8*' 'disabled'
'' + stdenv.lib.optionalString stdenv.hostPlatform.isMusl ''
buildInputs = stdenv.lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ ApplicationServices ]);
patchPhase = stdenv.lib.optionalString stdenv.hostPlatform.isMusl ''
substituteInPlace webrtc/base/checks.cc --replace 'defined(__UCLIBC__)' 1
'';