depot/third_party/nixpkgs/pkgs/development/libraries/faad2/default.nix

46 lines
960 B
Nix
Raw Normal View History

{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.0";
src = fetchFromGitHub {
owner = "knik0";
repo = "faad2";
rev = builtins.replaceStrings [ "." ] [ "_" ] version;
sha256 = "0q52kdd95ls6ihzyspx176wg9x22425v5qsknrmrjq30q25qmmlg";
};
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;
};
}