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:
Dom H 2022-01-16 18:44:45 +00:00
parent 5ea1fa86ee
commit baed737e2f

View file

@ -9,8 +9,12 @@ let inherit (lib) ;
}) { }) {
python = "python3"; 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 { machNix = mach-nix.mkPython rec {
requirements = builtins.readFile ./zephyr/scripts/requirements-base.txt; requirements = builtins.readFile zephyr-requirements;
}; };
in mkShell { in mkShell {
buildInputs = [ buildInputs = [