1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-03 19:15:39 +00:00

Merge pull request #6246 from codyopel/fdkaac

fdk-aac: refactor and add example optional
This commit is contained in:
William A. Kennington III 2015-02-08 14:34:32 -08:00
commit 76f9f2b8ac

View file

@ -1,19 +1,25 @@
{ stdenv, fetchurl }:
{ stdenv, fetchurl
, exampleSupport ? true # Example encoding program
}:
let version = "0.1.3";
in
stdenv.mkDerivation {
with stdenv.lib;
stdenv.mkDerivation rec {
name = "fdk-aac-${version}";
version = "0.1.3";
src = fetchurl {
url = "mirror://sourceforge/opencore-amr/fdk-aac/fdk-aac-${version}.tar.gz";
url = "mirror://sourceforge/opencore-amr/fdk-aac/${name}.tar.gz";
sha256 = "138c1l6c571289czihk0vlcfbla7qlac2jd5yyps5dyg08l8gjx9";
};
meta = with stdenv.lib; {
configureFlags = [ ]
++ optional exampleSupport "--enable-example";
meta = {
description = "A high-quality implementation of the AAC codec from Android";
homepage = "http://sourceforge.net/projects/opencore-amr/";
license = licenses.asl20;
platforms = platforms.linux;
homepage = http://sourceforge.net/projects/opencore-amr/;
license = licenses.asl20;
maintainers = with maintainers; [ codyopel ];
platforms = platforms.all;
};
}