2015-09-25 10:36:09 +01:00
|
|
|
{ stdenv, fetchurl, fetchzip, libogg, libvorbis, libao, pkgconfig, curl
|
|
|
|
, speex, flac }:
|
2008-02-11 22:39:54 +00:00
|
|
|
|
2015-09-25 10:36:09 +01:00
|
|
|
let
|
|
|
|
debPatch = fetchzip {
|
2020-03-13 08:47:16 +00:00
|
|
|
url = "mirror://debian/pool/main/v/vorbis-tools/vorbis-tools_1.4.0-11.debian.tar.xz";
|
|
|
|
sha256 = "0kvmd5nslyqplkdb7pnmqj47ir3y5lmaxd12wmrnqh679a8jhcyi";
|
2015-09-25 10:36:09 +01:00
|
|
|
};
|
|
|
|
in
|
2008-02-11 22:39:54 +00:00
|
|
|
stdenv.mkDerivation {
|
2011-04-23 22:58:30 +01:00
|
|
|
name = "vorbis-tools-1.4.0";
|
2008-02-11 22:39:54 +00:00
|
|
|
src = fetchurl {
|
2011-04-23 22:58:30 +01:00
|
|
|
url = http://downloads.xiph.org/releases/vorbis/vorbis-tools-1.4.0.tar.gz;
|
|
|
|
sha256 = "1g12bnh5ah08v529y72kfdz5lhvy75iaz7f9jskyby23m9dkk2d3";
|
2008-02-11 22:39:54 +00:00
|
|
|
};
|
|
|
|
|
2015-09-25 10:36:09 +01:00
|
|
|
postPatch = ''
|
|
|
|
for patch in $(ls "${debPatch}"/patches/*.{diff,patch} | grep -v debian_subdir)
|
|
|
|
do patch -p1 < "$patch"
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
2017-09-05 22:26:13 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ libogg libvorbis libao curl speex flac ];
|
2008-02-11 22:39:54 +00:00
|
|
|
|
2015-09-25 10:36:09 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Extra tools for Ogg-Vorbis audio codec";
|
2009-03-03 13:27:40 +00:00
|
|
|
longDescription = ''
|
|
|
|
A set of command-line tools to manipulate Ogg Vorbis audio
|
|
|
|
files, notably the `ogg123' player and the `oggenc' encoder.
|
|
|
|
'';
|
2018-06-27 21:12:57 +01:00
|
|
|
homepage = https://xiph.org/vorbis/;
|
2015-09-25 10:36:09 +01:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.all;
|
2008-02-11 22:39:54 +00:00
|
|
|
};
|
|
|
|
}
|
2015-09-25 10:36:09 +01:00
|
|
|
|