dergchat/flake.nix

53 lines
1.1 KiB
Nix
Raw Normal View History

2023-12-07 11:17:52 -05:00
{
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}";
};
};
}