Set cpu environment variables for kaem in flake
This commit is contained in:
parent
98a1873a57
commit
a3455191be
15
flake.nix
15
flake.nix
|
@ -7,7 +7,18 @@
|
|||
outputs = { self, nixpkgs, utils }:
|
||||
let supportedSystems = [ "x86_64-linux" "i686-linux" "aarch64-linux" ];
|
||||
in (utils.lib.eachSystem supportedSystems (system:
|
||||
let pkgs = import nixpkgs { inherit system; };
|
||||
let
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
stage0Arch = {
|
||||
"aarch64-linux" = "aarch64";
|
||||
"i686-linux" = "x86";
|
||||
"x86_64-linux" = "amd64";
|
||||
}.${system} or (throw "Unsupported system: ${system}");
|
||||
mesArch = {
|
||||
"aarch64-linux" = "aarch64";
|
||||
"i686-linux" = "x86";
|
||||
"x86_64-linux" = "x86_64";
|
||||
}.${system} or (throw "Unsupported system: ${system}");
|
||||
in rec {
|
||||
formatter = pkgs.nixfmt;
|
||||
|
||||
|
@ -21,6 +32,8 @@
|
|||
];
|
||||
|
||||
CC = "M2-Planet";
|
||||
stage0_cpu = stage0Arch;
|
||||
mes_cpu = mesArch;
|
||||
};
|
||||
devShells.default = devShells.rustybar;
|
||||
}));
|
||||
|
|
Loading…
Reference in a new issue