diff --git a/.gitmodules b/.gitmodules index f1998a7..11a7502 100644 --- a/.gitmodules +++ b/.gitmodules @@ -4,3 +4,6 @@ [submodule "modules/sdk"] path = modules/sdk url = https://github.com/pfalcon/esp-open-sdk.git +[submodule "modules/nix"] + path = modules/nix + url = https://github.com/busti/nixpkgs-esp-dev diff --git a/README.md b/README.md index 0495a08..ebf56ee 100644 --- a/README.md +++ b/README.md @@ -59,4 +59,12 @@ install `docker` on your platform and buil with ```bash make firmware_docker -j$(nproc) -``` \ No newline at end of file +``` + +### Build Steps (using nixos) + +In the project root run: +``` +nix-shell --option sandbox false +make firmware -j$(nproc) +``` diff --git a/modules/nix b/modules/nix new file mode 160000 index 0000000..403461c --- /dev/null +++ b/modules/nix @@ -0,0 +1 @@ +Subproject commit 403461c810ddab0cf498b24df5b5ff92606e4154 diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..416ba65 --- /dev/null +++ b/shell.nix @@ -0,0 +1 @@ +import ./modules/nix/shell-esp-open-rtos.nix {}