nixpkgs/pkgs/by-name/sv/svt-av1/package.nix
Silvan Mosberger 4f0dadbf38 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build a08b3a4d19.tar.gz \
      --argstr baseRev b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00

64 lines
1.4 KiB
Nix

{
lib,
stdenv,
fetchFromGitLab,
gitUpdater,
cmake,
nasm,
# for passthru.tests
ffmpeg,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "svt-av1";
version = "2.2.1";
src = fetchFromGitLab {
owner = "AOMediaCodec";
repo = "SVT-AV1";
rev = "v${finalAttrs.version}";
hash = "sha256-/JWFO4eT8bNvhdqJ6S0mGRIP0+aUTbDrlzqzwRqJOog=";
};
nativeBuildInputs = [
cmake
nasm
];
cmakeFlags = [
"-DSVT_AV1_LTO=ON"
];
passthru = {
updateScript = gitUpdater {
rev-prefix = "v";
};
tests = {
ffmpeg = ffmpeg.override { withSvtav1 = true; };
};
};
meta = with lib; {
homepage = "https://gitlab.com/AOMediaCodec/SVT-AV1";
description = "AV1-compliant encoder/decoder library core";
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.
'';
changelog = "https://gitlab.com/AOMediaCodec/SVT-AV1/-/blob/v${finalAttrs.version}/CHANGELOG.md";
license = with licenses; [
aom
bsd3
];
maintainers = with maintainers; [ Madouura ];
platforms = platforms.unix;
};
})