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

29 lines
682 B
Nix
Raw Normal View History

{lib, stdenv, fetchFromGitHub, autoreconfHook
2015-02-08 22:02:17 +00:00
, drmSupport ? false # Digital Radio Mondiale
}:
with lib;
2015-02-08 22:02:17 +00:00
stdenv.mkDerivation rec {
pname = "faad2";
2020-10-31 19:31:06 +00:00
version = "2.10.0";
src = fetchFromGitHub {
owner = "knik0";
repo = "faad2";
rev = builtins.replaceStrings [ "." ] [ "_" ] version;
2020-10-31 19:31:06 +00:00
sha256 = "0q52kdd95ls6ihzyspx176wg9x22425v5qsknrmrjq30q25qmmlg";
};
2015-02-08 22:02:17 +00:00
configureFlags = []
++ optional drmSupport "--with-drm";
nativeBuildInputs = [ autoreconfHook ];
meta = {
description = "An open source MPEG-4 and MPEG-2 AAC decoder";
2015-02-08 22:02:17 +00:00
license = licenses.gpl2;
maintainers = with maintainers; [ codyopel ];
platforms = platforms.all;
};
}