1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/libraries/amrnb/default.nix

32 lines
917 B
Nix
Raw Normal View History

{stdenv, fetchurl, unzip}:
stdenv.mkDerivation {
2013-11-24 13:57:28 +00:00
name = "amrnb-11.0.0.0";
srcAmr = fetchurl {
2013-11-24 13:57:28 +00:00
url = http://www.3gpp.org/ftp/Specs/latest/Rel-11/26_series/26104-b00.zip;
sha256 = "1wf8ih0hk7w20vdlnw7jb7w73v15hbxgbvmq4wq7h2ghn0j8ppr3";
};
src = fetchurl {
2015-09-12 13:00:53 +01: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";
};
buildInputs = [ unzip ];
configureFlags = [ "--cache-file=config.cache" "--with-downloader=true" ];
postConfigure = ''
2013-11-24 13:57:28 +00:00
cp $srcAmr 26104-b00.zip
'';
meta = {
homepage = http://www.penguin.cz/~utx/amr;
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.
license = stdenv.lib.licenses.unfree;
};
}