Connect IQ SDK for Nix
This makes the Connect IQ SDK available as a Nix expression.
$ nix-build -I developer_key.der=../developer_key/developer_key.der \
./samples.nix -A Attention
$ nix-shell
# Starts the simulator... it takes a couple seconds to show up
$ simulator &
# Wait until the simulator starts
$ result/bin/monkeydo result/Attention.prg vivoactive3
The official Getting Started documentation has details about generating the developer key.
Their Programmer's Guide has pointers about getting started, in addition to an API doc.
$ nix-shell
$ monkeyc -y ../developer_key/developer_key.der \
-f $SDK_PATH/samples/Attention/monkey.jungle \
-o Attention.prg
$ nix-shell
# Starts the simulator... it takes a couple seconds to show up
$ simulator &
# Wait until the simulator starts, then run
$ monkeydo Attention.prg vivoactive3
Note: MIT license does not apply to the packages built by this overkay, merely to the package descriptions (Nix expressions, build scripts, and so on). It also might not apply to patches included in Nixpkgs, which may be derivative works of the packages to which they apply. The aforementioned artifacts are all covered by the licenses of the respective packages.