update rust template

This commit is contained in:
Jasper Ras 2026-02-26 19:47:40 +01:00
parent dc011f663c
commit 1a197af1a8
2 changed files with 22 additions and 17 deletions

22
rust/flake.nix Normal file
View file

@ -0,0 +1,22 @@
{
description = "Template for Rust";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system :
let
pkgs = import nixpkgs { inherit system; };
in {
devShells.x86_64-linux.default = pkgs.mkShell {
packages = [
pkgs.rustup pkgs.cargo pkgs.rustc-unwrapped
pkgs.rust-analyzer-unwrapped
];
};
}
);
}