{
description = "flake for dust_bunny";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
fenix = {
url = "github:nix-community/fenix";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, nixpkgs, fenix }:
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
fe_pkgs = fenix.packages.${system};
librarys = with pkgs; [
wayland
alsa-lib-with-plugins
wayland
libxkbcommon
vulkan-loader
vulkan-caps-viewer
sdl3
];
in {
devShells.${system}.default = pkgs.mkShell {
buildInputs = with pkgs; [
(fe_pkgs.complete.withComponents [
"cargo"
"clippy"
"rust-src"
"rustc"
"rustfmt"
"rust-analyzer"
])
clang
pkg-config
wgsl-analyzer # lsp for wgsl
] ++ librarys;
LD_LIBRARY_PATH = "${pkgs.lib.makeLibraryPath librarys}";
};
};
}