dergchat/flake.nix

67 lines
1.8 KiB
Nix
Raw Normal View History

2023-12-09 15:24:57 -05:00
# Dergchat, a free XMPP client.
# Copyright (C) 2023 Werner Kroneman
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
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;
RUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}";
};
};
}