basic rust template
This commit is contained in:
commit
2f3fac1a58
9 changed files with 1026 additions and 0 deletions
26
flake.nix
Normal file
26
flake.nix
Normal file
|
@ -0,0 +1,26 @@
|
|||
{
|
||||
inputs = {
|
||||
nixpkgs.url = "nixpkgs/nixos-unstable";
|
||||
fenix = {
|
||||
url = "github:nix-community/fenix";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
};
|
||||
|
||||
outputs = { self, fenix, nixpkgs }:
|
||||
let
|
||||
system = "x86_64-linux";
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
rust-toolchain = fenix.packages.${system}.stable.toolchain;
|
||||
in {
|
||||
devShell.${system} = with pkgs; mkShell {
|
||||
nativeBuildInputs = [
|
||||
rust-toolchain
|
||||
cargo-generate
|
||||
# rust-analyzer-nightly
|
||||
|
||||
just
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue