A collection of examples and tests for using Flox manifest builds and Nix expression builds with a variety of popular language ecosystems.
- C++
- Go
- JVM (kotlin)
- Nodejs
- PHP
- Python
- Ruby
- Rust
Feel free to add more.
All applications are designed to built by:
cd $dir
flox build
# then run the resulting binary in result-*/bin/quotes*To test, you should be able to run
curl localhost:3000/quotes/1If that returns a 200, it's working.
make test at the top level of the project will build and test all directories.
You can also run make ruby or make go, etc
An alternate Flox binary can be provided with FLOXBIN which can also be used to provide different versions ad-hoc:
FLOXBIN="nix run github:flox/flox/v1.4.4 --"cd to the directory of the language you want to build and run the following command:
flox buildMIT