summary refs log tree commit diff
path: root/pkgs/development/libraries/amrwb/default.nix
blob: 7525b3baab09eacba9ddf92cd91aadcad0c5c247 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{ stdenv, fetchurl, unzip }:

stdenv.mkDerivation rec {
  pname = "amrwb";
  version = "11.0.0.0";

  srcAmr = fetchurl {
    url = http://www.3gpp.org/ftp/Specs/archive/26_series/26.204/26204-b00.zip;
    sha256 = "1v4zhs6f1mf1xkrzhljh05890in0rpr5d5pcak9h4igxhd2c91f8";
  };

  src = fetchurl {
    url = "http://www.penguin.cz/~utx/ftp/amr/amrwb-${version}.tar.bz2";
    sha256 = "1p6m9nd08mv525w14py9qzs9zwsa5i3vxf5bgcmcvc408jqmkbsw";
  };

  buildInputs = [ unzip ];

  configureFlags = [ "--cache-file=config.cache" "--with-downloader=true" ];

  postConfigure = ''
    cp $srcAmr 26204-b00.zip
  '';

  meta = {
    homepage = http://www.penguin.cz/~utx/amr;
    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.
    license = stdenv.lib.licenses.unfree;
  };
}