2021-01-21 17:00:13 +00:00
|
|
|
{lib, stdenv, fetchurl, unzip}:
|
2009-10-04 21:31:34 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2021-06-22 13:21:29 +00:00
|
|
|
pname = "amrnb";
|
|
|
|
version = "11.0.0.0";
|
2009-10-04 21:31:34 +00:00
|
|
|
srcAmr = fetchurl {
|
2021-06-22 13:21:29 +00:00
|
|
|
url = "https://www.3gpp.org/ftp/Specs/latest/Rel-11/26_series/26104-b00.zip";
|
2013-11-24 13:57:28 +00:00
|
|
|
sha256 = "1wf8ih0hk7w20vdlnw7jb7w73v15hbxgbvmq4wq7h2ghn0j8ppr3";
|
2009-10-04 21:31:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
src = fetchurl {
|
2020-04-01 01:11:51 +00:00
|
|
|
url = "http://www.penguin.cz/~utx/ftp/amr/amrnb-11.0.0.0.tar.bz2";
|
2013-11-24 13:57:28 +00:00
|
|
|
sha256 = "1qgiw02n2a6r32pimnd97v2jkvnw449xrqmaxiivjy2jcr5h141q";
|
2009-10-04 21:31:34 +00:00
|
|
|
};
|
|
|
|
|
2021-02-20 21:01:53 +00:00
|
|
|
nativeBuildInputs = [ unzip ];
|
2009-10-04 21:31:34 +00:00
|
|
|
|
|
|
|
configureFlags = [ "--cache-file=config.cache" "--with-downloader=true" ];
|
|
|
|
|
|
|
|
postConfigure = ''
|
2021-01-21 00:55:55 +00:00
|
|
|
cp $srcAmr 26104-b00.zip
|
2009-10-04 21:31:34 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://www.penguin.cz/~utx/amr";
|
2009-10-04 21:31:34 +00:00
|
|
|
description = "AMR Narrow-Band Codec";
|
|
|
|
# The wrapper code is free, but not the libraries from 3gpp.
|
|
|
|
# It's a source code reference implementation with patents and licenses on
|
|
|
|
# some countries, not redistributable.
|
2021-01-21 17:00:13 +00:00
|
|
|
license = lib.licenses.unfree;
|
2009-10-04 21:31:34 +00:00
|
|
|
};
|
|
|
|
}
|