From f3762ff59820955fe70b7a1095814b563026c4d9 Mon Sep 17 00:00:00 2001 From: busti Date: Wed, 7 Jul 2021 21:41:20 +0200 Subject: [PATCH] add build environment files for nixpkgs --- .gitmodules | 3 +++ README.md | 10 +++++++++- modules/nix | 1 + shell.nix | 1 + 4 files changed, 14 insertions(+), 1 deletion(-) create mode 160000 modules/nix create mode 100644 shell.nix 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 {}