1{
2 lib,
3 stdenv,
4 fetchurl,
5 libogg,
6 libvorbis,
7 libao,
8 pkg-config,
9 curl,
10 libiconv,
11 speex,
12 flac,
13 autoreconfHook,
14}:
15
16stdenv.mkDerivation rec {
17 pname = "vorbis-tools";
18 version = "1.4.3";
19
20 src = fetchurl {
21 url = "http://downloads.xiph.org/releases/vorbis/vorbis-tools-${version}.tar.gz";
22 hash = "sha256-of493Gd3vc6/a3l+ft/gQ3lUskdW/8yMa4FrY+BGDd4=";
23 };
24
25 nativeBuildInputs = [
26 autoreconfHook
27 pkg-config
28 ];
29 buildInputs = [
30 libogg
31 libvorbis
32 libao
33 curl
34 speex
35 flac
36 ]
37 ++ lib.optionals stdenv.hostPlatform.isDarwin [ libiconv ];
38
39 meta = with lib; {
40 description = "Extra tools for Ogg-Vorbis audio codec";
41 longDescription = ''
42 A set of command-line tools to manipulate Ogg Vorbis audio
43 files, notably the `ogg123' player and the `oggenc' encoder.
44 '';
45 homepage = "https://xiph.org/vorbis/";
46 license = licenses.gpl2;
47 platforms = platforms.all;
48 };
49}