28 lines
539 B
Nix
Raw Normal View History

2025-07-02 23:10:50 +02:00
{ pkgs, nixpkgs, rust-overlay, ... }:
let
overlays = [ (import rust-overlay) ];
system = pkgs.stdenv.system;
rustPkgs = import nixpkgs { inherit system overlays; };
rustVersion = (rustPkgs.rust-bin.fromRustupToolchainFile ./rust-toolchain.toml);
in {
packages = with rustPkgs; [
bacon
cargo-deny
just
(rustVersion.override {
extensions = [
"rust-src"
"rustfmt"
"clippy"
"rust-analyzer"
];
})
];
enterTest = ''
just lint
just test
just deny
'';
}