servicepoint-simulator/shell.nix

41 lines
632 B
Nix
Raw Normal View History

2024-11-07 20:18:49 +01:00
{
pkgs ? import <nixpkgs> { },
}:
let
rust-toolchain = pkgs.symlinkJoin {
name = "rust-toolchain";
paths = with pkgs; [
rustc
cargo
rustPlatform.rustcSrc
rustfmt
clippy
cargo-expand
];
};
in
2024-05-26 10:50:29 +02:00
pkgs.mkShell {
nativeBuildInputs = with pkgs.buildPackages; [
2024-11-07 20:18:49 +01:00
rust-toolchain
2024-06-26 17:23:52 +02:00
2024-05-26 10:50:29 +02:00
pkg-config
xe
lzma
2024-11-07 20:18:49 +01:00
# linux x11 / wayland
2024-05-26 10:50:29 +02:00
libxkbcommon
2024-11-07 20:18:49 +01:00
#xorg.libxkbfile
2024-05-26 10:50:29 +02:00
wayland
];
2024-06-26 17:23:52 +02:00
RUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}";
2024-11-07 20:18:49 +01:00
LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath (
with pkgs;
[
wayland
libxkbcommon
]
);
2024-05-17 21:28:51 +02:00
}