init templates
This commit is contained in:
parent
c41685983f
commit
93bff3aade
7 changed files with 345 additions and 0 deletions
26
templates/generic/nix-modules/shell.nix
Normal file
26
templates/generic/nix-modules/shell.nix
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
{ ... }:
|
||||
{
|
||||
perSystem =
|
||||
{ pkgs, self', ... }:
|
||||
{
|
||||
# An example devshell with some Rust and Nix tools
|
||||
devShells.default = pkgs.mkShell {
|
||||
buildInputs = with pkgs; [
|
||||
bacon
|
||||
cargo
|
||||
rust-analyzer
|
||||
rustc
|
||||
rustfmt
|
||||
clippy
|
||||
glibc
|
||||
sea-orm-cli
|
||||
nixfmt
|
||||
nil
|
||||
alejandra
|
||||
self'.packages.boilerplate
|
||||
];
|
||||
nativeBuildInputs = [ pkgs.pkg-config ];
|
||||
env.RUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue