add support for more systems

This commit is contained in:
Max Känner 2024-09-16 10:21:57 +02:00
parent cccea58966
commit 1ee35d233f
5 changed files with 164 additions and 73 deletions

View file

@ -3,19 +3,23 @@
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = {
self,
nixpkgs,
}: let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
in {
packages.${system} = {
rust = import ./rust.nix {inherit pkgs;};
clang = import ./clang.nix {inherit pkgs;};
default = self.packages.${system}.rust;
};
};
flake-utils,
...
}:
flake-utils.lib.eachDefaultSystem (
system: let
pkgs = nixpkgs.legacyPackages.${system};
in {
packages = rec {
rust = import ./rust.nix {inherit pkgs system;};
clang = import ./clang.nix {inherit pkgs system;};
default = rust;
};
}
);
}