Skip to content

Commit

Permalink
added more system support
Browse files Browse the repository at this point in the history
  • Loading branch information
BANANAPEEL202 committed Mar 17, 2024
1 parent 3367218 commit 4252a79
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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
];

};

};
}

0 comments on commit 4252a79

Please sign in to comment.