nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchurl,
5 exampleSupport ? false, # Example encoding program
6}:
7
8stdenv.mkDerivation rec {
9 pname = "fdk-aac";
10 version = "2.0.3";
11
12 src = fetchurl {
13 url = "mirror://sourceforge/opencore-amr/fdk-aac/${pname}-${version}.tar.gz";
14 sha256 = "sha256-gptrie7zgkCc2mhX/YKvhPq7Y0F7CO3p6npVP4Ect54=";
15 };
16
17 outputs = [
18 "out"
19 "dev"
20 ];
21
22 enableParallelBuilding = true;
23
24 configureFlags = lib.optional exampleSupport "--enable-example";
25
26 meta = with lib; {
27 description = "High-quality implementation of the AAC codec from Android";
28 homepage = "https://sourceforge.net/projects/opencore-amr/";
29 license = licenses.fraunhofer-fdk;
30 maintainers = with maintainers; [ codyopel ];
31 platforms = platforms.all;
32 };
33}