tests/libaom.nix
Exercise the installed allocator and encoder, including the capability-bearing allocation header shared by lookahead, partitioning and coefficient buffers.
λpkgs
pkgs.stdenv.mkDerivation
# The allocator is private API, available in the installed static archive.
$CC -Werror ${./libaom-allocation.c} ${pkgs.libaom.static}/lib/libaom.a -o allocation-check
true
./allocation-check
''touch "$out"''