rav1e: add version test

This commit is contained in:
seth 2024-06-11 20:32:39 -04:00
parent 7f76088890
commit d12fe4763b
No known key found for this signature in database
GPG Key ID: D31BD0D494BBEE86

View File

@ -6,11 +6,13 @@
fetchCrate,
pkg-config,
cargo-c,
libgit2,
nasm,
zlib,
libiconv,
darwin,
libgit2,
libiconv,
nasm,
testers,
zlib,
rav1e,
}:
rustPlatform.buildRustPackage rec {
@ -55,6 +57,10 @@ rustPlatform.buildRustPackage rec {
${rust.envVars.setEnv} cargo cinstall --release --frozen --prefix=${placeholder "out"} --target ${stdenv.hostPlatform.rust.rustcTarget}
'';
passthru = {
tests.version = testers.testVersion { package = rav1e; };
};
meta = {
description = "Fastest and safest AV1 encoder";
longDescription = ''