nix-configs/dev/rust/flake.nix
2025-10-04 10:10:49 -06:00

35 lines
704 B
Nix

{
description = "Flake for Rust development";
inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = {
self,
nixpkgs,
flake-utils,
...
}:
flake-utils.lib.eachSystem ["x86_64-linux" "aarch64-linux"] (
system: let
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
};
in {
devShells.default = pkgs.mkShell {
packages = with pkgs; [
cargo
rustc
pkg-config
openssl
libxkbcommon
wayland
wayland-protocols
];
};
}
);
}