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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

46 lines
919 B
Nix
Raw Normal View History

{lib
, stdenv
, fetchFromGitHub
, autoreconfHook
2015-02-08 22:02:17 +00:00
, drmSupport ? false # Digital Radio Mondiale
# for passthru.tests
, gst_all_1
, mpd
, ocamlPackages
, vlc
2015-02-08 22:02:17 +00:00
}:
with lib;
2015-02-08 22:02:17 +00:00
stdenv.mkDerivation rec {
pname = "faad2";
version = "2.10.1";
src = fetchFromGitHub {
owner = "knik0";
repo = "faad2";
rev = version;
sha256 = "sha256-k7y12OwCn3YkNZY9Ov5Y9EQtlrZh6oFUzM27JDR960w=";
};
2015-02-08 22:02:17 +00:00
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/";
2022-02-06 17:10:44 +00:00
license = licenses.gpl2Plus;
2015-02-08 22:02:17 +00:00
maintainers = with maintainers; [ codyopel ];
mainProgram = "faad";
2015-02-08 22:02:17 +00:00
platforms = platforms.all;
};
}