sox: musl does not support pipe rewind

Disable the pipe rewind related feature since musl has no support for it.

authored by

Walter Franzini and committed by
Symphorien Gibol
42e689e5 92225849

+26
+24
pkgs/applications/misc/audio/sox/0001-musl-rewind-pipe-workaround.patch
···
··· 1 + From e7446c9bcb47674c9d0ee3b5bab129e9b86eb1c9 Mon Sep 17 00:00:00 2001 2 + From: Walter Franzini <walter.franzini@gmail.com> 3 + Date: Fri, 7 Jun 2019 17:57:11 +0200 4 + Subject: [PATCH] musl does not support rewind pipe, make it build anyway 5 + 6 + --- 7 + src/formats.c | 1 - 8 + 1 file changed, 1 deletion(-) 9 + 10 + diff --git a/src/formats.c b/src/formats.c 11 + index f3efe764..477bf451 100644 12 + --- a/src/formats.c 13 + +++ b/src/formats.c 14 + @@ -424,7 +424,6 @@ static void UNUSED rewind_pipe(FILE * fp) 15 + /* To fix this #error, either simply remove the #error line and live without 16 + * file-type detection with pipes, or add support for your compiler in the 17 + * lines above. Test with cat monkey.wav | ./sox --info - */ 18 + - #error FIX NEEDED HERE 19 + #define NO_REWIND_PIPE 20 + (void)fp; 21 + #endif 22 + -- 23 + 2.19.2 24 +
+2
pkgs/applications/misc/audio/sox/default.nix
··· 27 # configure.ac uses pkg-config only to locate libopusfile 28 nativeBuildInputs = optional enableOpusfile pkg-config; 29 30 buildInputs = 31 optional (enableAlsa && stdenv.isLinux) alsaLib ++ 32 optional enableLibao libao ++
··· 27 # configure.ac uses pkg-config only to locate libopusfile 28 nativeBuildInputs = optional enableOpusfile pkg-config; 29 30 + patches = [ ./0001-musl-rewind-pipe-workaround.patch ]; 31 + 32 buildInputs = 33 optional (enableAlsa && stdenv.isLinux) alsaLib ++ 34 optional enableLibao libao ++