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