Fil-C on Nix

Filnix wiki

mbrock/filnix

tests/re2.nix

Match, replace and run the DFA of re2 (and its abseil headers) under Fil-C.

λpkgs, pkgsFilc
pkgsFilc.stdenv.mkDerivation
4name=
"filc-re2-consumer-check"
5dontUnpack=
true
6nativeBuildInputs=
pkgs.pkg-config
7buildInputs=
8buildPhase=
$CXX -std=c++17 -O2 ${./re2.cpp} $(pkg-config --cflags --libs re2) -o check
./check | tee check.log
grep -q '^ok: ' check.log
13installPhase=
touch "$out"