diff --git a/flake.nix b/flake.nix index 7866702..d7700b6 100644 --- a/flake.nix +++ b/flake.nix @@ -29,9 +29,21 @@ overlays = [ self.overlays.default ]; }; + arch64-darwin_pkgs = import nixpkgs { + system = "aarch64-darwin"; + overlays = [ self.overlays.default ]; + }; + + x86-darwin_pkgs = import nixpkgs { + system = "x86_64-darwin"; + overlays = [ self.overlays.default ]; + }; + packageSets = { "x86_64-linux" = makePackageSet x86_pkgs; "aarch64-linux" = makePackageSet arm_pkgs; + "x86_64-darwin" = makePackageSet x86-darwin_pkgs; + "aarch64-darwin" = makePackageSet arch64-darwin_pkgs; # Add more systems as needed }; in { @@ -50,5 +62,38 @@ }; + devShells.aarch64-linux.default = arm_pkgs.mkShell rec { + # Update the name to something that suites your project. + name = "nix-devshell"; + packages = with arm_pkgs; [ + # Development Tools + python311Packages.cantools + # ht_can_pkg + ]; + + }; + + devShells.aarch64-darwin.default = arch64-darwin_pkgs.mkShell rec { + # Update the name to something that suites your project. + name = "nix-devshell"; + packages = with arch64-darwin_pkgs; [ + # Development Tools + python311Packages.cantools + # ht_can_pkg + ]; + + }; + + devShells.x86_64-darwin.default = x86-darwin_pkgs.mkShell rec { + # Update the name to something that suites your project. + name = "nix-devshell"; + packages = with x86-darwin_pkgs; [ + # Development Tools + python311Packages.cantools + # ht_can_pkg + ]; + + }; + }; }