base16-schemes: unstable-2024-06-21 -> unstable-2024-11-12
[NixPkgs.git] / pkgs / by-name / sv / svt-av1 / package.nix
blob1b515b792c798385ff2ea85165bc6aa79a4e7e17
1 { lib
2 , stdenv
3 , fetchFromGitLab
4 , gitUpdater
5 , cmake
6 , nasm
8 # for passthru.tests
9 , ffmpeg
12 stdenv.mkDerivation (finalAttrs: {
13   pname = "svt-av1";
14   version = "2.2.1";
16   src = fetchFromGitLab {
17     owner = "AOMediaCodec";
18     repo = "SVT-AV1";
19     rev = "v${finalAttrs.version}";
20     hash = "sha256-/JWFO4eT8bNvhdqJ6S0mGRIP0+aUTbDrlzqzwRqJOog=";
21   };
23   nativeBuildInputs = [
24     cmake
25     nasm
26   ];
28   cmakeFlags = [
29     "-DSVT_AV1_LTO=ON"
30   ];
32   passthru = {
33     updateScript = gitUpdater {
34       rev-prefix = "v";
35     };
36     tests = {
37       ffmpeg = ffmpeg.override { withSvtav1 = true; };
38     };
39   };
41   meta = with lib; {
42     homepage = "https://gitlab.com/AOMediaCodec/SVT-AV1";
43     description = "AV1-compliant encoder/decoder library core";
45     longDescription = ''
46       The Scalable Video Technology for AV1 (SVT-AV1 Encoder and Decoder) is an
47       AV1-compliant encoder/decoder library core. The SVT-AV1 encoder
48       development is a work-in-progress targeting performance levels applicable
49       to both VOD and Live encoding / transcoding video applications. The
50       SVT-AV1 decoder implementation is targeting future codec research
51       activities.
52     '';
54     changelog = "https://gitlab.com/AOMediaCodec/SVT-AV1/-/blob/v${finalAttrs.version}/CHANGELOG.md";
55     license = with licenses; [ aom bsd3 ];
56     maintainers = with maintainers; [ Madouura ];
57     platforms = platforms.unix;
58   };