mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-17 11:13:30 +00:00
46 lines
919 B
Nix
46 lines
919 B
Nix
{lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, autoreconfHook
|
|
, drmSupport ? false # Digital Radio Mondiale
|
|
|
|
# for passthru.tests
|
|
, gst_all_1
|
|
, mpd
|
|
, ocamlPackages
|
|
, vlc
|
|
}:
|
|
|
|
with lib;
|
|
stdenv.mkDerivation rec {
|
|
pname = "faad2";
|
|
version = "2.10.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "knik0";
|
|
repo = "faad2";
|
|
rev = version;
|
|
sha256 = "sha256-k7y12OwCn3YkNZY9Ov5Y9EQtlrZh6oFUzM27JDR960w=";
|
|
};
|
|
|
|
configureFlags = []
|
|
++ optional drmSupport "--with-drm";
|
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
passthru.tests = {
|
|
inherit mpd vlc;
|
|
inherit (gst_all_1) gst-plugins-bad;
|
|
ocaml-faad = ocamlPackages.faad;
|
|
};
|
|
|
|
meta = {
|
|
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;
|
|
};
|
|
}
|