2022-10-22 19:03:24 +00:00
|
|
|
{lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, autoreconfHook
|
2015-02-08 22:02:17 +00:00
|
|
|
, drmSupport ? false # Digital Radio Mondiale
|
2022-10-22 19:03:24 +00:00
|
|
|
|
|
|
|
# for passthru.tests
|
|
|
|
, gst_all_1
|
|
|
|
, mpd
|
|
|
|
, ocamlPackages
|
|
|
|
, vlc
|
2015-02-08 22:02:17 +00:00
|
|
|
}:
|
2008-10-14 14:01:38 +00:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
with lib;
|
2015-02-08 22:02:17 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "faad2";
|
2022-10-22 09:35:51 +00:00
|
|
|
version = "2.10.1";
|
2008-10-14 14:01:38 +00:00
|
|
|
|
2020-06-17 11:26:03 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "knik0";
|
|
|
|
repo = "faad2";
|
2022-10-22 09:35:51 +00:00
|
|
|
rev = version;
|
|
|
|
sha256 = "sha256-k7y12OwCn3YkNZY9Ov5Y9EQtlrZh6oFUzM27JDR960w=";
|
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 ];
|
|
|
|
|
2022-10-22 19:03:24 +00:00
|
|
|
passthru.tests = {
|
|
|
|
inherit mpd vlc;
|
|
|
|
inherit (gst_all_1) gst-plugins-bad;
|
|
|
|
ocaml-faad = ocamlPackages.faad;
|
|
|
|
};
|
|
|
|
|
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";
|
2022-05-05 00:52:27 +00:00
|
|
|
homepage = "https://sourceforge.net/projects/faac/";
|
2022-02-06 17:10:44 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2015-02-08 22:02:17 +00:00
|
|
|
maintainers = with maintainers; [ codyopel ];
|
2022-05-05 00:52:27 +00:00
|
|
|
mainProgram = "faad";
|
2015-02-08 22:02:17 +00:00
|
|
|
platforms = platforms.all;
|
2008-10-14 14:01:38 +00:00
|
|
|
};
|
|
|
|
}
|