about summary refs log blame commit diff
path: root/shell.nix
blob: 6979e8969bd40307dd31f890f3daa61879ecdb74 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
                                                       
                                         
                                             
                                       
                               
                     



                          
                                            
                                         
                                   
                      
                     

                                                                 

                                         
 
{ mkShell, rustc, cargo, rust-analyzer, clippy, rustfmt
, cargo-watch, cargo-edit, cargo-outdated
, cargo-crev, cargo-audit, cargo-whatfeatures
, xh, systemfd, tokio-console, sqlx-cli
, pkg-config, protobuf, openssl
, nodePackages, caddy
}:
mkShell {
  name = "rust-dev-shell";

  nativeBuildInputs = [
    rustc cargo rust-analyzer clippy rustfmt
    cargo-watch cargo-edit cargo-outdated
    cargo-crev cargo-audit sqlx-cli
    cargo-whatfeatures
    xh systemfd caddy
    # protobuf is required for tokio-console's console-subscriber
    #tokio-console protobuf
    pkg-config openssl
  ] ++ (with nodePackages; [
    typescript typescript-language-server
  ]);
}