mc-launcher-rs/flake.nix
2026-10-21 11:10:36 +02:00

39 lines
713 B
Nix

{
description = "Rust dev flake";
inputs = {
nixpkgs.url = "nixpkgs"; # System's nixpkgs revision
utils.url = "flake-utils"; # Same as above
};
outputs = {
self, nixpkgs, utils,
}:
utils.lib.eachDefaultSystem (
system:
let
pkgs = import nixpkgs { inherit system; };
in {
devShells.default = pkgs.mkShell {
name = "rust shell";
buildInputs = with pkgs; [
# Toolchain
rustc
cargo
rustfmt
clippy
rust-analyzer
# Common deps
pkg-config
openssl
];
# Env vars
shellHook = ''
echo Rust loaded !
'';
};
}
);
}