Skip to content

Commit

Permalink
Fix ATtiny85 builds
Browse files Browse the repository at this point in the history
  • Loading branch information
jwillikers committed Sep 28, 2024
1 parent 90394e4 commit 0ce0853
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,17 @@
] ++ commonNativeBuildInputs;
# todo This does not work yet.
# pwm-fan-controller = pkgs.callPackage "./boards/attiny85/default.nix" { };
devShell = with boards.attiny85; pkgs.mkShell {

# The development shell requires the GCC AVR toolchain to be available.
# Thus, this cross-compilation configuration here does the trick.
avrCrossPkgs = import nixpkgs {
inherit overlays system;
crossSystem = {
inherit overlays;
config = "avr";
};
};
devShell = with boards.attiny85; avrCrossPkgs.mkShell {
# checks = self.checks.${system};
inherit nativeBuildInputs;
};
Expand Down

0 comments on commit 0ce0853

Please sign in to comment.