priprava 3 ready

This commit is contained in:
Priec
2026-02-02 20:27:52 +01:00
commit 2949251409
6 changed files with 98 additions and 0 deletions

33
flake.nix Normal file
View File

@@ -0,0 +1,33 @@
{
description = "Pure Rust development environment";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/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.default = pkgs.mkShell {
packages = with pkgs; [
rustc
cargo
rust-analyzer
clippy
rustfmt
pkg-config
openssl
];
shellHook = ''
echo ">>> Pure Rust DevShell (Nix managed toolchain)"
cargo --version
rustc --version
echo "Run: cargo new <project_name>"
'';
};
});
}