mirror of
https://github.com/urbit/ares.git
synced 2024-11-22 15:08:54 +03:00
34 lines
862 B
Nix
34 lines
862 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
|
|
pkgs.iconv
|
|
];
|
|
};
|
|
}
|
|
);
|
|
}
|
|
|