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;
|
||||
|
||||
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 {
|
||||
buildInputs = [
|
||||
cmake
|
||||
|
@ -11,9 +20,7 @@ in mkShell {
|
|||
dtc
|
||||
dfu-util
|
||||
gcc-arm-embedded
|
||||
python3
|
||||
python38Packages.west
|
||||
python38Packages.pip
|
||||
machNix
|
||||
];
|
||||
|
||||
shellHook = ''
|
||||
|
|
Loading…
Add table
Reference in a new issue