aboutsummaryrefslogtreecommitdiff
path: root/pkgs/development/libraries/faad2
diff options
context:
space:
mode:
authorcodyopel <codyopel@gmail.com>2015-02-08 17:02:17 -0500
committercodyopel <codyopel@gmail.com>2015-02-08 17:02:17 -0500
commit18fbca33bb02366ef318252d9d1c0ac511b10b3c (patch)
treec02ceea9d1c6d3fbdaed9a9304cf68fb7238f680 /pkgs/development/libraries/faad2
parentf02ccf6acd418e1e4d38ddb651f0d205838c3120 (diff)
faad2: refactor and add drm optional
Diffstat (limited to 'pkgs/development/libraries/faad2')
-rw-r--r--pkgs/development/libraries/faad2/default.nix21
1 files changed, 15 insertions, 6 deletions
diff --git a/pkgs/development/libraries/faad2/default.nix b/pkgs/development/libraries/faad2/default.nix
index 99177578c779..865bedf09ba2 100644
--- a/pkgs/development/libraries/faad2/default.nix
+++ b/pkgs/development/libraries/faad2/default.nix
@@ -1,16 +1,25 @@
-{stdenv, fetchurl}:
+{stdenv, fetchurl
+, drmSupport ? false # Digital Radio Mondiale
+}:
-stdenv.mkDerivation {
- name = "faad2-2.7";
+with stdenv.lib;
+stdenv.mkDerivation rec {
+ name = "faad2-${version}";
+ version = "2.7";
src = fetchurl {
- url = mirror://sourceforge/faac/faad2-2.7.tar.bz2;
+ url = "mirror://sourceforge/faac/${name}.tar.bz2";
sha256 = "1db37ydb6mxhshbayvirm5vz6j361bjim4nkpwjyhmy4ddfinmhl";
};
+ configureFlags = []
+ ++ optional drmSupport "--with-drm";
+
meta = {
description = "An open source MPEG-4 and MPEG-2 AAC decoder";
- homepage = http://www.audiocoding.com/faad2.html;
- license = stdenv.lib.licenses.gpl2;
+ homepage = http://www.audiocoding.com/faad2.html;
+ license = licenses.gpl2;
+ maintainers = with maintainers; [ codyopel ];
+ platforms = platforms.all;
};
}