-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault.nix
22 lines (21 loc) · 1.02 KB
/
default.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ pkgs ? import <nixpkgs> {}, toolchain ? "quick" }:
rec {
quick-sdk = pkgs.callPackage ./esp-quick-toolchain.nix {};
open-sdk = import ./esp-open-sdk.nix { inherit pkgs; };
sdk = (
if toolchain == "quick" then
quick-sdk
else if toolchain == "open" then
open-sdk
else throw "Unsuported toolchain"
);
sming = import ./sming.nix { inherit pkgs; esp-sdk = sdk; };
esptool2 = import ./esptool2.nix { inherit pkgs; };
crosstool-ng = import ./crosstool-ng.nix { inherit pkgs; };
flash = import ./flash.nix { inherit sming pkgs; };
init = import ./initialize.nix { inherit sming pkgs; sdk = sdk; };
spiffs = import ./spiffs.nix { inherit sming pkgs; };
buildSmingApplication = pkgs.lib.makeOverridable pkgs.callPackage ./buildSmingApplication.nix { inherit sming; esp-sdk = sdk; };
buildSmingComponent = pkgs.lib.makeOverridable pkgs.callPackage ./buildSmingComponent.nix { inherit sming; esp-sdk = sdk; };
firmwareWithTools = pkgs.callPackage ./firmwareWithTools.nix { inherit flash init spiffs; };
}