mirror of
https://github.com/galister/oscavmgr.git
synced 2026-11-19 22:41:14 -08:00
* Bump openxrs, use safe bindings for face tracking * Update flake, add Rust src path so rust-analyzer works * cargo fmt
35 lines
681 B
Nix
35 lines
681 B
Nix
{
|
|
description = "Simple Rust dev shell";
|
|
|
|
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 {
|
|
nativeBuildInputs = with pkgs; [
|
|
rustc
|
|
cargo
|
|
rustfmt
|
|
clippy
|
|
pkg-config
|
|
gcc
|
|
rust-analyzer
|
|
];
|
|
buildInputs = with pkgs; [
|
|
openssl
|
|
gcc
|
|
libiconv
|
|
openxr-loader
|
|
];
|
|
RUST_SRC_PATH = "${pkgs.rustPlatform.rustLibSrc}";
|
|
};
|
|
};
|
|
}
|