47 lines
1.1 KiB
Nix
47 lines
1.1 KiB
Nix
{
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/26.05";
|
|
espidf.url = "github:hnaderi/espidf-nix";
|
|
fenix = {
|
|
url = "github:nix-community/fenix";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
};
|
|
|
|
outputs =
|
|
{ nixpkgs, fenix, espidf, ... }:
|
|
let
|
|
pkgs = import nixpkgs {
|
|
overlays = [
|
|
espidf.overlays.default
|
|
fenix.overlays.default
|
|
];
|
|
system = "x86_64-linux";
|
|
};
|
|
rust-toolchain = pkgs.fenix.fromToolchainFile {
|
|
file = ./rust-toolchain.toml;
|
|
sha256 = "sha256-/cMB/kOBm9HQsV7Kb5N3n1b/ygfsuoNIChEh/jiS3A8=";
|
|
};
|
|
esp-idf = (espidf.lib.mkEspIdf {
|
|
inherit pkgs;
|
|
idfVersion = "v6.0.3";
|
|
});
|
|
in
|
|
{
|
|
devShells.x86_64-linux.default = pkgs.mkShell {
|
|
packages = [
|
|
rust-toolchain
|
|
esp-idf
|
|
pkgs.espflash
|
|
pkgs.esp-idf
|
|
pkgs.ldproxy
|
|
pkgs.llvmPackages.libclang.lib
|
|
(pkgs.python3.withPackages (python-pkgs: with python-pkgs; [
|
|
pip
|
|
]))
|
|
];
|
|
nativeBuildInputs = [pkgs.rustPlatform.bindgenHook ];
|
|
};
|
|
};
|
|
}
|