2020-06-17 11:26:03 +00:00
|
|
|
{stdenv, fetchFromGitHub, autoreconfHook
|
2015-02-08 22:02:17 +00:00
|
|
|
, drmSupport ? false # Digital Radio Mondiale
|
|
|
|
}:
|
2008-10-14 14:01:38 +00:00
|
|
|
|
2015-02-08 22:02:17 +00:00
|
|
|
with stdenv.lib;
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "faad2";
|
2020-10-31 19:31:06 +00:00
|
|
|
version = "2.10.0";
|
2008-10-14 14:01:38 +00:00
|
|
|
|
2020-06-17 11:26:03 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "knik0";
|
|
|
|
repo = "faad2";
|
|
|
|
rev = builtins.replaceStrings [ "." ] [ "_" ] version;
|
2020-10-31 19:31:06 +00:00
|
|
|
sha256 = "0q52kdd95ls6ihzyspx176wg9x22425v5qsknrmrjq30q25qmmlg";
|
2009-03-10 22:45:27 +00:00
|
|
|
};
|
2008-10-14 14:01:38 +00:00
|
|
|
|
2015-02-08 22:02:17 +00:00
|
|
|
configureFlags = []
|
|
|
|
++ optional drmSupport "--with-drm";
|
|
|
|
|
2020-06-17 11:26:03 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
|
2008-10-14 14:01:38 +00:00
|
|
|
meta = {
|
2009-03-10 22:45:27 +00:00
|
|
|
description = "An open source MPEG-4 and MPEG-2 AAC decoder";
|
2015-02-08 22:02:17 +00:00
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = with maintainers; [ codyopel ];
|
|
|
|
platforms = platforms.all;
|
2008-10-14 14:01:38 +00:00
|
|
|
};
|
|
|
|
}
|