2022-10-30 15:09:59 +00:00
|
|
|
{lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
2024-01-02 11:29:13 +00:00
|
|
|
, cmake
|
2022-10-30 15:09:59 +00:00
|
|
|
|
|
|
|
# for passthru.tests
|
|
|
|
, gst_all_1
|
|
|
|
, mpd
|
|
|
|
, ocamlPackages
|
|
|
|
, vlc
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "faad2";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "2.11.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-07-18 16:06:22 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "knik0";
|
|
|
|
repo = "faad2";
|
2022-11-02 22:02:43 +00:00
|
|
|
rev = version;
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-E6oe7yjYy1SJo8xQkyUk1sSucKDMPxwUFVSAyrf4Pd8=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
outputs = [ "out" "dev" "man" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
2020-07-18 16:06:22 +00:00
|
|
|
|
2022-10-30 15:09:59 +00:00
|
|
|
passthru.tests = {
|
|
|
|
inherit mpd vlc;
|
|
|
|
inherit (gst_all_1) gst-plugins-bad;
|
|
|
|
ocaml-faad = ocamlPackages.faad;
|
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Open source MPEG-4 and MPEG-2 AAC decoder";
|
2022-05-18 14:49:53 +00:00
|
|
|
homepage = "https://sourceforge.net/projects/faac/";
|
2022-02-10 20:34:41 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ codyopel ];
|
2022-05-18 14:49:53 +00:00
|
|
|
mainProgram = "faad";
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|