2021-02-05 17:12:51 +00:00
|
|
|
{lib, stdenv, fetchFromGitHub, autoreconfHook
|
2020-04-24 23:36:52 +00:00
|
|
|
, drmSupport ? false # Digital Radio Mondiale
|
|
|
|
}:
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
with lib;
|
2020-04-24 23:36:52 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "faad2";
|
2020-11-21 19:51:51 +00:00
|
|
|
version = "2.10.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-07-18 16:06:22 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "knik0";
|
|
|
|
repo = "faad2";
|
|
|
|
rev = builtins.replaceStrings [ "." ] [ "_" ] version;
|
2020-11-21 19:51:51 +00:00
|
|
|
sha256 = "0q52kdd95ls6ihzyspx176wg9x22425v5qsknrmrjq30q25qmmlg";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
configureFlags = []
|
|
|
|
++ optional drmSupport "--with-drm";
|
|
|
|
|
2020-07-18 16:06:22 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = {
|
|
|
|
description = "An open source MPEG-4 and MPEG-2 AAC decoder";
|
2022-02-10 20:34:41 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ codyopel ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|