From 02146a53445889d31c75151c60066cbef36891cb Mon Sep 17 00:00:00 2001 From: seth Date: Tue, 2 Jul 2024 04:14:28 -0400 Subject: feat: add build shell this will allow compiling the firmware using the previously packaged toolchain in an FHS environment --- flake.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index aced115..c3a03ba 100644 --- a/flake.nix +++ b/flake.nix @@ -28,6 +28,18 @@ ); in { + devShells = forAllSystems ( + system: + let + pkgs = nixpkgsFor.${system}.native; + in + { + firmware-build = pkgs.callPackage ./firmware-build-shell.nix { + toolchain = self.packages.${system}.default; + }; + } + ); + formatter = forAllSystems (system: nixpkgsFor.${system}.native.nixfmt-rfc-style); packages = forAllSystems ( -- cgit v1.2.3