nixos-config/templates/rust-app/nix/shell.nix

19 lines
453 B
Nix
Raw Normal View History

2024-10-21 07:25:06 +00:00
{ pkgs ? import <nixpkgs> { } }:
let app = pkgs.callPackage ./package.nix { };
in pkgs.mkShell {
inputsFrom = [ app ];
# The rest of the development-related packages should be here.
packages = with pkgs; [
direnv
clippy
rust-analyzer
# The formatters used in this project.
treefmt # The universal formatter (if configured nicely).
nixfmt # The universal Nix formatter.
rustfmt # The universal Rust formatter.
];
}