fix(setup): Fetch Zephyr requirements from URL
The requirements cannot be read from the file in `./zephyr/` because
this directory does not yet exist in a clean repo.
Fetching the requirements file from an upstream URL is consistent with
how the ZMK docker image does it:
25972e7aad/Dockerfile (L26-L27)
This commit is contained in:
parent
5ea1fa86ee
commit
baed737e2f
1 changed files with 5 additions and 1 deletions
|
@ -9,8 +9,12 @@ let inherit (lib) ;
|
|||
}) {
|
||||
python = "python3";
|
||||
};
|
||||
zephyr-requirements = fetchurl {
|
||||
url = "https://raw.githubusercontent.com/zephyrproject-rtos/zephyr/v2.5.0/scripts/requirements-base.txt";
|
||||
sha256 = "919a78ba9457a8e55451450329158ff7fdcbc4a2ddb0dd76ea804c3b04a3c6c6";
|
||||
};
|
||||
machNix = mach-nix.mkPython rec {
|
||||
requirements = builtins.readFile ./zephyr/scripts/requirements-base.txt;
|
||||
requirements = builtins.readFile zephyr-requirements;
|
||||
};
|
||||
in mkShell {
|
||||
buildInputs = [
|
||||
|
|
Loading…
Add table
Reference in a new issue