@@ -1,26 +1,17 @@
1−{ lib, stdenv, fetchurl, fetchzip, libogg, libvorbis, libao, pkg-config, curl
2−, speex, flac }:
1+{ lib, stdenv, fetchurl, libogg, libvorbis, libao, pkg-config, curl
2+, speex, flac
3+, autoreconfHook }:
4+
5+stdenv.mkDerivation rec {
6+ pname = "vorbis-tools";
7+ version = "1.4.2";
38
4−let
5− debPatch = fetchzip {
6− url = "mirror://debian/pool/main/v/vorbis-tools/vorbis-tools_1.4.0-11.debian.tar.xz";
7− sha256 = "0kvmd5nslyqplkdb7pnmqj47ir3y5lmaxd12wmrnqh679a8jhcyi";
8− };
9−in
10−stdenv.mkDerivation {
11− name = "vorbis-tools-1.4.0";
129 src = fetchurl {
13− url = "http://downloads.xiph.org/releases/vorbis/vorbis-tools-1.4.0.tar.gz";
14− sha256 = "1g12bnh5ah08v529y72kfdz5lhvy75iaz7f9jskyby23m9dkk2d3";
10+ url = "http://downloads.xiph.org/releases/vorbis/vorbis-tools-${version}.tar.gz";
11+ sha256 = "1c7h4ivgfdyygz2hyh6nfibxlkz8kdk868a576qkkjgj5gn78xyv";
1512 };
1613
17− postPatch = ''
18− for patch in $(ls "${debPatch}"/patches/*.{diff,patch} | grep -v debian_subdir)
19− do patch -p1 < "$patch"
20− done
21− '';
22−
23− nativeBuildInputs = [ pkg-config ];
14+ nativeBuildInputs = [ autoreconfHook pkg-config ];
2415 buildInputs = [ libogg libvorbis libao curl speex flac ];
2516
2617 meta = with lib; {