{ description = "A devshell environment for an XMPP client thingy."; nixConfig.bash-prompt = "[rust/chatthingy] "; inputs = { nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; }; outputs = { self, nixpkgs }: let system = "x86_64-linux"; pkgs = nixpkgs.legacyPackages.${system}; rust-toolchain = pkgs.symlinkJoin { name = "rust-toolchain"; paths = [pkgs.rustc pkgs.cargo pkgs.rustPlatform.rustcSrc]; }; in { devShells.${system}.default = pkgs.mkShell rec { packages = with pkgs; [ rust-toolchain rustfmt pkg-config alsaLib udev xorg.libX11 xorg.libXcursor xorg.libXi xorg.libXrandr vulkan-loader libxkbcommon wayland fontconfig openssl glibc gtk3 webkitgtk_4_1 dioxus-cli ]; WEBKIT_DISABLE_COMPOSITING_MODE=1; # LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath packages; RUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}"; }; }; }