add support for more systems
This commit is contained in:
parent
cccea58966
commit
1ee35d233f
5 changed files with 164 additions and 73 deletions
26
flake.nix
26
flake.nix
|
|
@ -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;
|
||||
};
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue