2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, fetchzip, libogg, libvorbis, libao, pkg-config, curl
|
2020-04-24 23:36:52 +00:00
|
|
|
, speex, flac }:
|
|
|
|
|
|
|
|
let
|
|
|
|
debPatch = fetchzip {
|
|
|
|
url = "mirror://debian/pool/main/v/vorbis-tools/vorbis-tools_1.4.0-11.debian.tar.xz";
|
|
|
|
sha256 = "0kvmd5nslyqplkdb7pnmqj47ir3y5lmaxd12wmrnqh679a8jhcyi";
|
|
|
|
};
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "vorbis-tools-1.4.0";
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://downloads.xiph.org/releases/vorbis/vorbis-tools-1.4.0.tar.gz";
|
|
|
|
sha256 = "1g12bnh5ah08v529y72kfdz5lhvy75iaz7f9jskyby23m9dkk2d3";
|
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
for patch in $(ls "${debPatch}"/patches/*.{diff,patch} | grep -v debian_subdir)
|
|
|
|
do patch -p1 < "$patch"
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ libogg libvorbis libao curl speex flac ];
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|