Fil-C on Nix

Filnix wiki

mbrock/filnix

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
5name=
"filc-libaom-allocation-encoder-check"
6dontUnpack=
true
7buildPhase=
# 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
11doCheck=
true
12checkPhase=
./allocation-check
${pkgs.buildPackages.python3}/bin/python3 ${./libaom-encoder.py} ${pkgs.libaom.bin}/bin
16installPhase=
''touch "$out"''