2024-03-22 18:01:43 +01:00
|
|
|
{ pkgs ? import <nixpkgs> { overlays = [ (import (builtins.fetchTarball https://github.com/mozilla/nixpkgs-mozilla/archive/master.tar.gz)) ]; },}:
|
|
|
|
with pkgs;
|
|
|
|
|
|
|
|
mkShell {
|
|
|
|
nativeBuildInputs = with xorg; [
|
|
|
|
libxcb
|
|
|
|
libXcursor
|
|
|
|
libXrandr
|
|
|
|
libXi
|
|
|
|
pkg-config
|
|
|
|
] ++ [
|
2024-08-07 11:40:44 +02:00
|
|
|
#cargo
|
2024-03-22 18:01:43 +01:00
|
|
|
rustc
|
|
|
|
atk
|
|
|
|
gdk-pixbuf
|
|
|
|
webkitgtk
|
|
|
|
glib
|
|
|
|
libGL
|
|
|
|
libGLU
|
|
|
|
libxkbcommon
|
|
|
|
gtk3-x11
|
2024-08-07 11:40:44 +02:00
|
|
|
#gnome.zenity
|
2024-03-22 18:01:43 +01:00
|
|
|
];
|
|
|
|
buildInputs = [
|
|
|
|
latest.rustChannels.stable.rust
|
|
|
|
xorg.libX11
|
2024-08-07 11:40:44 +02:00
|
|
|
# wayland
|
2024-03-22 18:01:43 +01:00
|
|
|
libxkbcommon
|
|
|
|
];
|
|
|
|
|
|
|
|
shellHook = ''
|
|
|
|
export LD_LIBRARY_PATH=/run/opengl-driver/lib/:${lib.makeLibraryPath ([libGL libGLU libxkbcommon])}
|
|
|
|
'';
|
|
|
|
}
|