/ nix / dev.nix
dev.nix
 1  {
 2    lib,
 3    mkShell,
 4    withRust ? (builtins.getEnv "DEVENV_RUST" != "0"),
 5    cargo,
 6    clippy,
 7    rustc,
 8    rustfmt,
 9  }:
10  
11  mkShell {
12    packages = lib.optionals withRust [
13      cargo
14      clippy
15      rustc
16      rustfmt
17    ];
18  
19    env = {
20      CONFIG_PATH = "config.dev.toml:users.toml";
21      RUST_LOG = "warn,aocbot=trace";
22    };
23  }