2024-04-24 02:15:12 +00:00
|
|
|
{
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
|
|
|
utils.url = "github:numtide/flake-utils";
|
|
|
|
};
|
|
|
|
|
|
|
|
outputs =
|
|
|
|
{
|
|
|
|
self,
|
|
|
|
nixpkgs,
|
|
|
|
utils,
|
|
|
|
}:
|
|
|
|
utils.lib.eachDefaultSystem (
|
|
|
|
system:
|
|
|
|
let
|
|
|
|
pkgs = import nixpkgs { inherit system; };
|
|
|
|
in
|
|
|
|
{
|
|
|
|
devShells.default =
|
|
|
|
with pkgs;
|
|
|
|
mkShell {
|
|
|
|
packages = [
|
|
|
|
rustPackages.cargo
|
|
|
|
rustPackages.rustc
|
|
|
|
rustPackages.rustfmt
|
|
|
|
rustPackages.clippy
|
2024-08-25 03:51:35 +00:00
|
|
|
|
|
|
|
protobuf
|
2024-04-24 02:15:12 +00:00
|
|
|
];
|
|
|
|
RUST_SRC_PATH = "${rustPackages.rustPlatform.rustLibSrc}";
|
2024-09-05 00:10:51 +00:00
|
|
|
RUST_LOG = "debug,vapore=trace,vapore-client=trace";
|
2024-08-28 01:49:36 +00:00
|
|
|
RUST_BACKTRACE = "1";
|
2024-04-24 02:15:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
formatter = pkgs.nixfmt-rfc-style;
|
|
|
|
}
|
|
|
|
);
|
|
|
|
}
|