samueldr / nix-connectiq

Connect IQ packaged for use with Nix, Nixpkgs and NixOS; used to make applications for Garmin connected devices

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This makes the Connect IQ SDK available as a Nix expression.

Building and running a sample

$ 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

Notes

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.

Manually building something

$ nix-shell
$ monkeyc -y ../developer_key/developer_key.der \
	-f $SDK_PATH/samples/Attention/monkey.jungle \
	-o Attention.prg

Running something

$ 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.

About

Connect IQ packaged for use with Nix, Nixpkgs and NixOS; used to make applications for Garmin connected devices

License:MIT License


Languages

Language:Nix 100.0%