Something went wrong. Try again.
This repository has no description
Something went wrong. Try again.
Nix 99%
Shell 1%
README.md
AtomVM Nix #
A Nix flake for building AtomVM, a tiny Erlang virtual machine for microcontrollers and embedded systems.
Overview #
This flake provides packages for:
- atomvm - The main AtomVM runtime
- uf2tool - Tool for creating UF2 firmware files
Usage #
Using the flake directly #
# Run AtomVM
nix run git+https://codeberg.org/adamcstephens/atomvm.nix
nix run git+https://tangled.sh/@adam.robins.wtf/atomvm.nix
# Build AtomVM
nix build git+https://codeberg.org/adamcstephens/atomvm.nix
nix biuld git+https://tangled.sh/@adam.robins.wtf/atomvm.nix
In your own flake #
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
atomvm.url = "git+https://codeberg.org/adamcstephens/atomvm.nix";
# atomvm.url = "git+https://tangled.sh/@adam.robins.wtf/atomvm.nix";
};
outputs = { nixpkgs, atomvm }:
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
in {
devShells.${system}.default = pkgs.mkShell {
packages = [
atomvm.packages.${system}.atomvm
atomvm.packages.${system}.uf2tool
];
};
};
}
License #
Apache License 2.0