mirror of
https://github.com/urbit/ares.git
synced 2024-11-26 09:57:56 +03:00
33 lines
839 B
Nix
33 lines
839 B
Nix
{
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
fenix = {
|
|
url = "github:nix-community/fenix";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
};
|
|
|
|
outputs = {self, fenix, flake-utils, nixpkgs}:
|
|
let supportedSystems = ["x86_64-linux" "x86_64-darwin" "aarch64-darwin"];
|
|
in flake-utils.lib.eachSystem supportedSystems
|
|
(system:
|
|
let pkgs = import nixpkgs { inherit system; };
|
|
in { devShells.default = pkgs.mkShell {
|
|
buildInputs = [
|
|
(fenix.packages.${system}.complete.withComponents [
|
|
"cargo"
|
|
"clippy"
|
|
"rustc"
|
|
"rustfmt"
|
|
"rust-src"
|
|
])
|
|
pkgs.cargo-watch
|
|
pkgs.gdb
|
|
];
|
|
};
|
|
}
|
|
);
|
|
}
|
|
|