feat: init
This commit is contained in:
commit
c839eeded1
16 changed files with 3772 additions and 0 deletions
34
templates/default/nix/devshells/rust.nix
Normal file
34
templates/default/nix/devshells/rust.nix
Normal file
|
@ -0,0 +1,34 @@
|
|||
{
|
||||
flake,
|
||||
system,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
craneLib = flake.lib.mkCraneLib { inherit pkgs system; };
|
||||
in
|
||||
craneLib.devShell {
|
||||
inputsFrom =
|
||||
[
|
||||
flake.devShells.${system}.default
|
||||
]
|
||||
# Inherit inputs from rust-workspace on the platforms it's available.
|
||||
++ (pkgs.lib.lists.optionals
|
||||
(pkgs.lib.meta.availableOn pkgs.stdenv.hostPlatform flake.packages.${system}.rust-workspace)
|
||||
(
|
||||
[
|
||||
flake.packages.${system}.rust-workspace
|
||||
|
||||
]
|
||||
++ (builtins.attrValues flake.packages.${system}.rust-workspace.passthru.tests)
|
||||
)
|
||||
);
|
||||
|
||||
# Additional dev-shell environment variables can be set directly
|
||||
# MY_CUSTOM_DEVELOPMENT_VAR = "something else";
|
||||
|
||||
# Extra inputs can be added here; cargo and rustc are provided by default.
|
||||
packages = [
|
||||
pkgs.natscli
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue