push sheeet
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
From e7446c9bcb47674c9d0ee3b5bab129e9b86eb1c9 Mon Sep 17 00:00:00 2001
From: Walter Franzini <walter.franzini@gmail.com>
Date: Fri, 7 Jun 2019 17:57:11 +0200
Subject: [PATCH] musl does not support rewind pipe, make it build anyway
---
src/formats.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/src/formats.c b/src/formats.c
index f3efe764..477bf451 100644
--- a/src/formats.c
+++ b/src/formats.c
@@ -424,7 +424,6 @@ static void UNUSED rewind_pipe(FILE * fp)
/* To fix this #error, either simply remove the #error line and live without
* file-type detection with pipes, or add support for your compiler in the
* lines above. Test with cat monkey.wav | ./sox --info - */
- #error FIX NEEDED HERE
#define NO_REWIND_PIPE
(void)fp;
#endif
--
2.19.2

View File

@@ -0,0 +1,97 @@
{
config,
lib,
stdenv,
fetchgit,
autoreconfHook,
autoconf-archive,
pkg-config,
enableAlsa ? true,
alsa-lib,
enableLibao ? true,
libao,
enableLame ? config.sox.enableLame or false,
lame,
enableLibmad ? true,
libmad,
enableLibogg ? true,
libogg,
libvorbis,
enableOpusfile ? true,
opusfile,
enableFLAC ? true,
flac,
enablePNG ? true,
libpng,
enableLibsndfile ? true,
libsndfile,
enableWavpack ? true,
wavpack,
# amrnb and amrwb are unfree, disabled by default
enableAMR ? false,
amrnb,
amrwb,
enableLibpulseaudio ?
stdenv.hostPlatform.isLinux && lib.meta.availableOn stdenv.hostPlatform libpulseaudio,
libpulseaudio,
}:
stdenv.mkDerivation {
pname = "sox";
version = "unstable-2021-05-09";
src = fetchgit {
# not really needed, but when this src was updated from `fetchurl ->
# fetchgit`, we spared the mass rebuild by changing this `name` and
# therefor merge this to `master` and not to `staging`.
name = "source";
url = "https://git.code.sf.net/p/sox/code";
rev = "42b3557e13e0fe01a83465b672d89faddbe65f49";
hash = "sha256-9cpOwio69GvzVeDq79BSmJgds9WU5kA/KUlAkHcpN5c=";
};
outputs = [
"out"
"dev"
"lib"
"man"
];
nativeBuildInputs = [
autoreconfHook
autoconf-archive
pkg-config
];
patches = [ ./0001-musl-rewind-pipe-workaround.patch ];
buildInputs =
lib.optional (enableAlsa && stdenv.hostPlatform.isLinux) alsa-lib
++ lib.optional enableLibao libao
++ lib.optional enableLame lame
++ lib.optional enableLibmad libmad
++ lib.optionals enableLibogg [
libogg
libvorbis
]
++ lib.optional enableOpusfile opusfile
++ lib.optional enableFLAC flac
++ lib.optional enablePNG libpng
++ lib.optional enableLibsndfile libsndfile
++ lib.optional enableWavpack wavpack
++ lib.optionals enableAMR [
amrnb
amrwb
]
++ lib.optional enableLibpulseaudio libpulseaudio;
enableParallelBuilding = true;
meta = with lib; {
description = "Sample Rate Converter for audio";
homepage = "https://sox.sourceforge.net/";
maintainers = with maintainers; [ marcweber ];
license = if enableAMR then licenses.unfree else licenses.gpl2Plus;
platforms = platforms.unix;
};
}