summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorseth <[email protected]>2024-07-02 04:14:28 -0400
committerseth <[email protected]>2024-07-02 04:14:28 -0400
commit02146a53445889d31c75151c60066cbef36891cb (patch)
tree1ff0f8f24a9d1edcadf051db6a06814bb921cd76 /flake.nix
parent24d92030dda5bbe03542e0bae51c8810f3a48548 (diff)
feat: add build shellbuild-shell
this will allow compiling the firmware using the previously packaged toolchain in an FHS environment
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix12
1 files changed, 12 insertions, 0 deletions
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 (