{ buildEmscriptenPackage }: buildEmscriptenPackage { name = "triangle"; src = ./.; configurePhase = ""; buildPhase = '' export EM_CACHE=/tmp/em-cache emcc -o triangle triangle.c ''; checkPhase = ""; installPhase = '' mkdir -p $out ls -al mv triangle triangle.wasm $out ''; }