13 stdenv.mkDerivation rec {
17 src = fetchFromGitHub {
18 owner = "AOMediaCodec";
21 sha256 = "sha256-EGu2avkqQXHFX4gKWsVfVdQN99f4J7Hm86C0sAhuP1Y=";
24 # reco: encode libaom slowest but best, decode dav1d fastest
27 "-DBUILD_SHARED_LIBS=ON"
28 "-DAVIF_CODEC_AOM=ON" # best encoder (slow but small)
29 "-DAVIF_CODEC_DAV1D=ON" # best decoder (fast)
30 "-DAVIF_CODEC_AOM_DECODE=OFF"
31 "-DAVIF_BUILD_APPS=ON"
49 description = "C implementation of the AV1 Image File Format";
51 Libavif aims to be a friendly, portable C implementation of the
52 AV1 Image File Format. It is a work-in-progress, but can already
53 encode and decode all AOM supported YUV formats and bit depths
54 (with alpha). It also features an encoder and a decoder
57 homepage = "https://github.com/AOMediaCodec/libavif";
58 changelog = "https://github.com/AOMediaCodec/libavif/blob/v${version}/CHANGELOG.md";
59 maintainers = with maintainers; [ mkg20001 ];
60 platforms = platforms.all;
61 license = licenses.bsd2;