This repository is meant to be a demo-setup for several ecosystems to show how to build a package using the manifest build approach from Flox.
- 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/1
If 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 build
MIT