init of rust

This commit is contained in:
Filipriec
2026-03-24 13:33:21 +01:00
commit cd768e5498
8 changed files with 99 additions and 0 deletions

32
flake.nix Normal file
View File

@@ -0,0 +1,32 @@
{
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
outputs = { nixpkgs, ... }:
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
in
{
devShells.${system}.default = pkgs.mkShell {
packages = with pkgs; [
# Original packages
httpie
node-red
# Rust toolchain
rustc
cargo
rust-analyzer
clippy
rustfmt
pkg-config
openssl
];
shellHook = ''
echo ">>> Environment loaded with Rust & Node-red"
cargo --version
rustc --version
'';
};
};
}