File tree Expand file tree Collapse file tree 2 files changed +15
-4
lines changed
Expand file tree Collapse file tree 2 files changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -5,10 +5,12 @@ set -euxo pipefail
55git submodule init
66git submodule update
77
8+ # reset
9+ git submodule foreach ' git clean -ffdx; git checkout .'
10+ rm -rf venv
11+
812python3 -m venv venv
913source venv/bin/activate
10- pip install -U pip
11- pip install pyyaml pykwalify packaging pyelftools colorama setuptools==68.2.2
1214
1315sed -e ' s#"/bin:/usr/bin"#"/bin:/usr/bin:' " $( dirname " $( which gcc) " ) :$( dirname " $( which dtc) " ) " ' ","DYLD_LIBRARY_PATH":"' " $( dirname " $( dirname " $( which dtc) " ) " ) /lib" ' "#' -i src/platform/ec/zephyr/zmake/zmake/jobserver.py
1416pip install src/platform/ec/zephyr/zmake
Original file line number Diff line number Diff line change 1616 } :
1717 flake-utils . lib . eachDefaultSystem ( system : let
1818 pkgs = import nixpkgs { inherit system ; } ;
19+
20+ python = pkgs . python312 ;
21+ pythonPkgs = pkgs . python312Packages ;
1922 in {
2023 formatter = pkgs . alejandra ;
2124
2225 devShells . default = pkgs . mkShell {
2326 buildInputs = with pkgs ; [
2427 ( zephyr-nix . packages . ${ system } . sdk-0_16 . override { targets = [ "arm-zephyr-eabi" ] ; } )
25- python312
26- python312Packages . libfdt # <- 311 version fails to build
28+ python
29+ pythonPkgs . pyyaml
30+ pythonPkgs . pykwalify
31+ pythonPkgs . packaging
32+ pythonPkgs . pyelftools
33+ pythonPkgs . colorama
34+ pythonPkgs . setuptools
35+ pythonPkgs . libfdt # <- 311 version fails to build; can't build with pip.
2736 dtc
2837 cmake
2938 ninja
You can’t perform that action at this time.
0 commit comments