mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-02 15:41:48 +00:00
faad2: refactor and add drm optional
This commit is contained in:
parent
f02ccf6acd
commit
18fbca33bb
@ -1,16 +1,25 @@
|
|||||||
{stdenv, fetchurl}:
|
{stdenv, fetchurl
|
||||||
|
, drmSupport ? false # Digital Radio Mondiale
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
with stdenv.lib;
|
||||||
name = "faad2-2.7";
|
stdenv.mkDerivation rec {
|
||||||
|
name = "faad2-${version}";
|
||||||
|
version = "2.7";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = mirror://sourceforge/faac/faad2-2.7.tar.bz2;
|
url = "mirror://sourceforge/faac/${name}.tar.bz2";
|
||||||
sha256 = "1db37ydb6mxhshbayvirm5vz6j361bjim4nkpwjyhmy4ddfinmhl";
|
sha256 = "1db37ydb6mxhshbayvirm5vz6j361bjim4nkpwjyhmy4ddfinmhl";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
configureFlags = []
|
||||||
|
++ optional drmSupport "--with-drm";
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "An open source MPEG-4 and MPEG-2 AAC decoder";
|
description = "An open source MPEG-4 and MPEG-2 AAC decoder";
|
||||||
homepage = http://www.audiocoding.com/faad2.html;
|
homepage = http://www.audiocoding.com/faad2.html;
|
||||||
license = stdenv.lib.licenses.gpl2;
|
license = licenses.gpl2;
|
||||||
|
maintainers = with maintainers; [ codyopel ];
|
||||||
|
platforms = platforms.all;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user