1{stdenv, fetchurl, unzip}:
2
3stdenv.mkDerivation {
4 name = "amrnb-11.0.0.0";
5 srcAmr = fetchurl {
6 url = http://www.3gpp.org/ftp/Specs/latest/Rel-11/26_series/26104-b00.zip;
7 sha256 = "1wf8ih0hk7w20vdlnw7jb7w73v15hbxgbvmq4wq7h2ghn0j8ppr3";
8 };
9
10 src = fetchurl {
11 url = http://www.penguin.cz/~utx/ftp/amr/amrnb-11.0.0.0.tar.bz2;
12 sha256 = "1qgiw02n2a6r32pimnd97v2jkvnw449xrqmaxiivjy2jcr5h141q";
13 };
14
15 buildInputs = [ unzip ];
16
17 configureFlags = [ "--cache-file=config.cache" "--with-downloader=true" ];
18
19 postConfigure = ''
20 cp $srcAmr 26104-b00.zip
21 '';
22
23 meta = {
24 homepage = http://www.penguin.cz/~utx/amr;
25 description = "AMR Narrow-Band Codec";
26 # The wrapper code is free, but not the libraries from 3gpp.
27 # It's a source code reference implementation with patents and licenses on
28 # some countries, not redistributable.
29 license = stdenv.lib.licenses.unfree;
30 };
31}