init
This commit is contained in:
24
flake.nix
Normal file
24
flake.nix
Normal file
@@ -0,0 +1,24 @@
|
||||
{
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
||||
};
|
||||
outputs = {nixpkgs, ...}: let
|
||||
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
||||
esp-rs = pkgs.callPackage ./nix/esp-rs.nix {};
|
||||
in {
|
||||
devShells.x86_64-linux.default = pkgs.mkShell {
|
||||
buildInputs = [
|
||||
pkgs.pkg-config
|
||||
pkgs.libudev-zero
|
||||
pkgs.libusb1
|
||||
pkgs.espflash
|
||||
pkgs.esp-generate
|
||||
pkgs.rust-analyzer
|
||||
esp-rs
|
||||
];
|
||||
shellHook = ''
|
||||
export RUSTUP_TOOLCHAIN=${esp-rs}
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user