mirror of
https://github.com/kaesaecracker/servicepoint-simulator.git
synced 2025-01-18 10:30:14 +01:00
41 lines
632 B
Nix
41 lines
632 B
Nix
{
|
|
pkgs ? import <nixpkgs> { },
|
|
}:
|
|
let
|
|
rust-toolchain = pkgs.symlinkJoin {
|
|
name = "rust-toolchain";
|
|
paths = with pkgs; [
|
|
rustc
|
|
cargo
|
|
rustPlatform.rustcSrc
|
|
rustfmt
|
|
clippy
|
|
cargo-expand
|
|
];
|
|
};
|
|
in
|
|
pkgs.mkShell {
|
|
nativeBuildInputs = with pkgs.buildPackages; [
|
|
rust-toolchain
|
|
|
|
pkg-config
|
|
xe
|
|
lzma
|
|
|
|
# linux x11 / wayland
|
|
libxkbcommon
|
|
#xorg.libxkbfile
|
|
wayland
|
|
];
|
|
|
|
RUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}";
|
|
|
|
LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath (
|
|
with pkgs;
|
|
[
|
|
wayland
|
|
libxkbcommon
|
|
]
|
|
);
|
|
}
|