diff options
author | William A. Kennington III <william@wkennington.com> | 2015-02-08 14:34:32 -0800 |
---|---|---|
committer | William A. Kennington III <william@wkennington.com> | 2015-02-08 14:34:32 -0800 |
commit | 76f9f2b8ac6d43096a861fe6f7460b558572677d (patch) | |
tree | 74e9afefa6ed9df927ce026355c16ae57ebf5d72 | |
parent | 637ed5c6f62e4d2c5eae7868004a198e8fe657bd (diff) | |
parent | 51e995f00622e00e26e4a6615cf6a3eae6e4b5d3 (diff) | |
download | nixlib-76f9f2b8ac6d43096a861fe6f7460b558572677d.tar nixlib-76f9f2b8ac6d43096a861fe6f7460b558572677d.tar.gz nixlib-76f9f2b8ac6d43096a861fe6f7460b558572677d.tar.bz2 nixlib-76f9f2b8ac6d43096a861fe6f7460b558572677d.tar.lz nixlib-76f9f2b8ac6d43096a861fe6f7460b558572677d.tar.xz nixlib-76f9f2b8ac6d43096a861fe6f7460b558572677d.tar.zst nixlib-76f9f2b8ac6d43096a861fe6f7460b558572677d.zip |
Merge pull request #6246 from codyopel/fdkaac
fdk-aac: refactor and add example optional
-rw-r--r-- | pkgs/development/libraries/fdk-aac/default.nix | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/pkgs/development/libraries/fdk-aac/default.nix b/pkgs/development/libraries/fdk-aac/default.nix index a9c8b19dc501..0694b7d3018c 100644 --- a/pkgs/development/libraries/fdk-aac/default.nix +++ b/pkgs/development/libraries/fdk-aac/default.nix @@ -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; }; } |