39 lines
829 B
Nix
39 lines
829 B
Nix
{
|
|
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
|
|
|
|
protobuf
|
|
];
|
|
RUST_SRC_PATH = "${rustPackages.rustPlatform.rustLibSrc}";
|
|
RUST_LOG = "debug,vapore=trace,vapore-client=trace";
|
|
RUST_BACKTRACE = "1";
|
|
};
|
|
|
|
formatter = pkgs.nixfmt-rfc-style;
|
|
}
|
|
);
|
|
}
|