fix(setup): Add zephyr requirements to nix-shell

Use mach-nix to handle zephyr's python requirements.
This commit is contained in:
Dom H 2021-12-04 10:56:54 +00:00
parent 23c2ef0556
commit 5ea1fa86ee

View file

@ -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 = ''