25 lines
395 B
Nix
25 lines
395 B
Nix
{ pkgs ? import <nixpkgs> { }, lib ? pkgs.lib }:
|
|
|
|
pkgs.mkShell rec {
|
|
name = "rust-env";
|
|
|
|
nativeBuildInputs = with pkgs; [
|
|
pkg-config
|
|
rustc
|
|
cargo
|
|
];
|
|
buildInputs = with pkgs; [
|
|
openssl
|
|
alsa-lib
|
|
xorg.libX11
|
|
xorg.libXcursor
|
|
xorg.libXrandr
|
|
xorg.libXi
|
|
wayland
|
|
libxkbcommon
|
|
libGL
|
|
];
|
|
|
|
LD_LIBRARY_PATH = "${lib.makeLibraryPath buildInputs}";
|
|
}
|