mirror of
https://gitea.mizah.xyz/mizah/dergchat
synced 2024-11-24 12:12:16 -05:00
53 lines
1.1 KiB
Nix
53 lines
1.1 KiB
Nix
|
{
|
||
|
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}";
|
||
|
};
|
||
|
|
||
|
};
|
||
|
}
|