2021-08-18 13:19:15 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
2020-04-24 23:36:52 +00:00
|
|
|
, exampleSupport ? false # Example encoding program
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "fdk-aac";
|
2024-02-29 20:09:43 +00:00
|
|
|
version = "2.0.3";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/opencore-amr/fdk-aac/${pname}-${version}.tar.gz";
|
2024-02-29 20:09:43 +00:00
|
|
|
sha256 = "sha256-gptrie7zgkCc2mhX/YKvhPq7Y0F7CO3p6npVP4Ect54=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-08-18 13:19:15 +00:00
|
|
|
configureFlags = lib.optional exampleSupport "--enable-example";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-08-18 13:19:15 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "High-quality implementation of the AAC codec from Android";
|
2021-08-18 13:19:15 +00:00
|
|
|
homepage = "https://sourceforge.net/projects/opencore-amr/";
|
2023-10-09 19:29:22 +00:00
|
|
|
license = licenses.fraunhofer-fdk;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ codyopel ];
|
2021-08-18 13:19:15 +00:00
|
|
|
platforms = platforms.all;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|