vapore/flake.nix

41 lines
953 B
Nix
Raw Normal View History

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;
2024-09-12 23:43:29 +00:00
(mkShell.override { stdenv = llvmPackages.stdenv; }) {
2024-04-24 02:15:12 +00:00
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
];
2024-09-12 23:43:29 +00:00
LIBCLANG_PATH = "${llvmPackages.libclang.lib}/lib";
2024-04-24 02:15:12 +00:00
RUST_SRC_PATH = "${rustPackages.rustPlatform.rustLibSrc}";
2024-09-13 05:43:52 +00:00
RUST_LOG = "debug,vapore=trace,vapore-client=trace,bindgen=error";
RUST_BACKTRACE = "1";
2024-04-24 02:15:12 +00:00
};
formatter = pkgs.nixfmt-rfc-style;
}
);
}