2023-11-16 04:20:00 +00:00
|
|
|
{ lib, stdenv, fetchurl, fetchpatch, libogg, libvorbis, libao, pkg-config, curl, libiconv
|
2021-02-13 14:23:35 +00:00
|
|
|
, speex, flac
|
|
|
|
, autoreconfHook }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "vorbis-tools";
|
|
|
|
version = "1.4.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-02-13 14:23:35 +00:00
|
|
|
url = "http://downloads.xiph.org/releases/vorbis/vorbis-tools-${version}.tar.gz";
|
|
|
|
sha256 = "1c7h4ivgfdyygz2hyh6nfibxlkz8kdk868a576qkkjgj5gn78xyv";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
patches = lib.optionals stdenv.cc.isClang [
|
|
|
|
# Fixes a call to undeclared function `utf8_decode`.
|
|
|
|
# https://github.com/xiph/vorbis-tools/pull/33
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/xiph/vorbis-tools/commit/8a645f78b45ae7e370c0dc2a52d0f2612aa6110b.patch";
|
|
|
|
hash = "sha256-RkT9Xa0pRu/oO9E9qhDa17L0luWgYHI2yINIkPZanmI=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2021-02-13 14:23:35 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
2023-11-16 04:20:00 +00:00
|
|
|
buildInputs = [ libogg libvorbis libao curl speex flac ]
|
|
|
|
++ lib.optionals stdenv.isDarwin [ libiconv ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Extra tools for Ogg-Vorbis audio codec";
|
|
|
|
longDescription = ''
|
|
|
|
A set of command-line tools to manipulate Ogg Vorbis audio
|
|
|
|
files, notably the `ogg123' player and the `oggenc' encoder.
|
|
|
|
'';
|
|
|
|
homepage = "https://xiph.org/vorbis/";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|