diff --git a/pkgs/applications/audio/vorbis-tools/default.nix b/pkgs/applications/audio/vorbis-tools/default.nix new file mode 100644 index 00000000000..13fe5a48cfa --- /dev/null +++ b/pkgs/applications/audio/vorbis-tools/default.nix @@ -0,0 +1,28 @@ +{stdenv, fetchurl, libogg, libvorbis, libao, pkgconfig, curl, glibc +, speex, flac}: + +# FIXME: We'd need `libOggFLAC' too. + +stdenv.mkDerivation { + name = "vorbis-tools-1.1.1"; + src = fetchurl { + url = http://downloads.xiph.org/releases/vorbis/vorbis-tools-1.1.1.tar.gz; + sha256 = "617b4aa69e600c215b34fa3fd5764bc1d9d205d9d7d9fe7812bde7ec956fcaad"; + }; + + buildInputs = [ libogg libvorbis libao pkgconfig curl speex flac glibc ]; + + configureFlagsArray = [ + ("--with-curl=" + curl) + ("--with-curl-libraries=" + curl + "/lib") + ("--with-curl-includes=" + curl + "/include") + ]; + + meta = { + description = ''A set of command-line tools to manipulate Ogg Vorbis + audio files, notably the `ogg123' player and the + `oggenc' encoder.''; + homepage = http://xiph.org/vorbis/; + license = "GPLv2"; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 5900d320156..e337da8f175 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5212,6 +5212,11 @@ rec { alsa = alsaLib; }; + vorbisTools = import ../applications/audio/vorbis-tools { + inherit fetchurl stdenv libogg libvorbis libao pkgconfig curl glibc + speex flac; + }; + w3m = import ../applications/networking/browsers/w3m { inherit fetchurl stdenv ncurses openssl boehmgc gettext zlib; graphicsSupport = false;