Skip to content

Commit 49509a8

Browse files
committed
flake: update to Zephyr 0.17 SDK
Signed-off-by: Mariana Ücker <mariana@freedom.ind.br>
1 parent 80ba6cb commit 49509a8

2 files changed

Lines changed: 36 additions & 80 deletions

File tree

flake.lock

Lines changed: 25 additions & 76 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
22
inputs = {
3-
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
3+
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
44

55
flake-parts = {
66
url = "github:hercules-ci/flake-parts";
77
inputs.nixpkgs-lib.follows = "nixpkgs";
88
};
99

1010
treefmt-nix = {
11-
url = "github:numtide/treefmt-nix";
11+
url = "github:numtide/treefmt-nix/246639a1ec081bb40941a25e9eb8481a66d71b49";
1212
inputs.nixpkgs.follows = "nixpkgs";
1313
};
1414

@@ -53,11 +53,18 @@
5353
black.enable = true;
5454
clang-format = {
5555
enable = true;
56-
package = pkgs.clang-tools_17;
56+
package = pkgs.clang-tools_19;
5757
};
5858
nixpkgs-fmt.enable = true;
5959
shfmt.enable = true;
6060
};
61+
62+
settings.formatter = {
63+
clang-format = {
64+
options = [ "-i" "-style=file:${inputs.zephyr-nix.inputs.zephyr}/.clang-format" ];
65+
excludes = [ "build/*" "twister-out*/*" ];
66+
};
67+
};
6168
};
6269

6370
devShells.default = pkgs.mkShell {
@@ -66,7 +73,7 @@
6673
];
6774

6875
packages = [
69-
(zephyr.sdk.override {
76+
(zephyr.sdk-0_17.override {
7077
targets = [
7178
"arm-zephyr-eabi"
7279
];

0 commit comments

Comments
 (0)