about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/fdk-aac/default.nix
blob: 99e211877da1e10f560dfdb3c24890e94417dd57 (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
{ lib
, stdenv
, fetchurl
, exampleSupport ? false # Example encoding program
}:

stdenv.mkDerivation rec {
  pname = "fdk-aac";
  version = "2.0.2";

  src = fetchurl {
    url = "mirror://sourceforge/opencore-amr/fdk-aac/${pname}-${version}.tar.gz";
    sha256 = "sha256-yehjDPnUM/POrXSQahUg0iI/ibzT+pJUhhAXRAuOsi8=";
  };

  outputs = [ "out" "dev" ];

  enableParallelBuilding = true;

  configureFlags = lib.optional exampleSupport "--enable-example";

  meta = with lib; {
    description = "A high-quality implementation of the AAC codec from Android";
    homepage = "https://sourceforge.net/projects/opencore-amr/";
    license = licenses.fraunhofer-fdk;
    maintainers = with maintainers; [ codyopel ];
    platforms = platforms.all;
  };
}