fix(setup): Add zephyr requirements to nix-shell
Use mach-nix to handle zephyr's python requirements.
This commit is contained in:
parent
23c2ef0556
commit
5ea1fa86ee
1 changed files with 10 additions and 3 deletions
13
shell.nix
13
shell.nix
|
@ -3,6 +3,15 @@
|
||||||
with pkgs;
|
with pkgs;
|
||||||
|
|
||||||
let inherit (lib) ;
|
let inherit (lib) ;
|
||||||
|
mach-nix = import (builtins.fetchGit {
|
||||||
|
url = "https://github.com/DavHau/mach-nix";
|
||||||
|
ref = "master";
|
||||||
|
}) {
|
||||||
|
python = "python3";
|
||||||
|
};
|
||||||
|
machNix = mach-nix.mkPython rec {
|
||||||
|
requirements = builtins.readFile ./zephyr/scripts/requirements-base.txt;
|
||||||
|
};
|
||||||
in mkShell {
|
in mkShell {
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
cmake
|
cmake
|
||||||
|
@ -11,9 +20,7 @@ in mkShell {
|
||||||
dtc
|
dtc
|
||||||
dfu-util
|
dfu-util
|
||||||
gcc-arm-embedded
|
gcc-arm-embedded
|
||||||
python3
|
machNix
|
||||||
python38Packages.west
|
|
||||||
python38Packages.pip
|
|
||||||
];
|
];
|
||||||
|
|
||||||
shellHook = ''
|
shellHook = ''
|
||||||
|
|
Loading…
Add table
Reference in a new issue