2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchurl, unzip }:
|
2009-10-04 21:31:34 +00:00
|
|
|
|
2017-10-04 10:54:47 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "amrwb";
|
2017-10-04 10:54:47 +00:00
|
|
|
version = "11.0.0.0";
|
2009-10-04 21:31:34 +00:00
|
|
|
|
|
|
|
srcAmr = fetchurl {
|
2020-04-01 01:11:51 +00:00
|
|
|
url = "http://www.3gpp.org/ftp/Specs/archive/26_series/26.204/26204-b00.zip";
|
2017-10-04 10:54:47 +00:00
|
|
|
sha256 = "1v4zhs6f1mf1xkrzhljh05890in0rpr5d5pcak9h4igxhd2c91f8";
|
2009-10-04 21:31:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
src = fetchurl {
|
2017-10-04 10:54:47 +00:00
|
|
|
url = "http://www.penguin.cz/~utx/ftp/amr/amrwb-${version}.tar.bz2";
|
|
|
|
sha256 = "1p6m9nd08mv525w14py9qzs9zwsa5i3vxf5bgcmcvc408jqmkbsw";
|
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 = ''
|
2017-10-04 10:54:47 +00:00
|
|
|
cp $srcAmr 26204-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 Wide-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
|
|
|
};
|
|
|
|
}
|