nixpkgs/pkgs/tools/video/svt-av1/default.nix

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

52 lines
1.3 KiB
Nix
Raw Normal View History

2022-12-24 23:24:47 +00:00
{ lib
, stdenv
, fetchFromGitLab
, gitUpdater
, cmake
, nasm
}:
2020-12-04 14:07:42 +00:00
2022-12-24 23:24:47 +00:00
stdenv.mkDerivation (finalAttrs: {
2020-12-04 14:07:42 +00:00
pname = "svt-av1";
2023-09-09 02:57:08 +00:00
version = "1.7.0";
2020-12-04 14:07:42 +00:00
src = fetchFromGitLab {
2020-12-04 14:07:42 +00:00
owner = "AOMediaCodec";
repo = "SVT-AV1";
2022-12-24 23:24:47 +00:00
rev = "v${finalAttrs.version}";
2023-09-09 02:57:08 +00:00
sha256 = "sha256-WKc0DNwpA9smMS3e/GDkk77FUkohwaPMgcXgji14CIw=";
2020-12-04 14:07:42 +00:00
};
2022-12-24 23:24:47 +00:00
nativeBuildInputs = [
cmake
nasm
];
2023-04-27 15:43:51 +00:00
cmakeFlags = [
"-DSVT_AV1_LTO=ON"
2022-12-24 23:24:47 +00:00
];
passthru.updateScript = gitUpdater {
rev-prefix = "v";
};
2020-12-04 14:07:42 +00:00
meta = with lib; {
2022-12-24 23:24:47 +00:00
homepage = "https://gitlab.com/AOMediaCodec/SVT-AV1";
2020-12-04 14:07:42 +00:00
description = "AV1-compliant encoder/decoder library core";
2022-12-24 23:24:47 +00:00
longDescription = ''
The Scalable Video Technology for AV1 (SVT-AV1 Encoder and Decoder) is an
AV1-compliant encoder/decoder library core. The SVT-AV1 encoder
development is a work-in-progress targeting performance levels applicable
to both VOD and Live encoding / transcoding video applications. The
SVT-AV1 decoder implementation is targeting future codec research
activities.
'';
2022-12-24 23:24:47 +00:00
changelog = "https://gitlab.com/AOMediaCodec/SVT-AV1/-/blob/v${finalAttrs.version}/CHANGELOG.md";
license = with licenses; [ aom bsd3 ];
maintainers = with maintainers; [ Madouura ];
2020-12-04 14:07:42 +00:00
platforms = platforms.unix;
};
2022-12-24 23:24:47 +00:00
})