depot/third_party/nixpkgs/pkgs/development/libraries/faad2/default.nix
Default email a0cb138ada Project import generated by Copybara.
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
2023-02-02 18:25:31 +00:00

44 lines
923 B
Nix

{lib
, stdenv
, fetchFromGitHub
, autoreconfHook
, drmSupport ? false # Digital Radio Mondiale
# for passthru.tests
, gst_all_1
, mpd
, ocamlPackages
, vlc
}:
stdenv.mkDerivation rec {
pname = "faad2";
version = "2.10.1";
src = fetchFromGitHub {
owner = "knik0";
repo = "faad2";
rev = version;
sha256 = "sha256-k7y12OwCn3YkNZY9Ov5Y9EQtlrZh6oFUzM27JDR960w=";
};
configureFlags = []
++ lib.optional drmSupport "--with-drm";
nativeBuildInputs = [ autoreconfHook ];
passthru.tests = {
inherit mpd vlc;
inherit (gst_all_1) gst-plugins-bad;
ocaml-faad = ocamlPackages.faad;
};
meta = with lib; {
description = "An open source MPEG-4 and MPEG-2 AAC decoder";
homepage = "https://sourceforge.net/projects/faac/";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ codyopel ];
mainProgram = "faad";
platforms = platforms.all;
};
}