Added Nix Flake

This commit is contained in:
2024-05-06 12:27:05 +02:00
parent ba20f457f8
commit 85e07886e9
2 changed files with 50 additions and 0 deletions

23
flake.nix Normal file
View File

@ -0,0 +1,23 @@
{
description = "Rust setup";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
};
outputs = { self, nixpkgs, ... }:
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
in {
devShells.${system}.default = pkgs.mkShell {
buildInputs = with pkgs; [
cargo
clippy
rustfmt
];
};
};
}