Skip to content

Instantly share code, notes, and snippets.

@TheSirC
Last active May 7, 2024 17:59
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TheSirC/8fc34ba9143c8fe4f0b1962f4d7225df to your computer and use it in GitHub Desktop.
Save TheSirC/8fc34ba9143c8fe4f0b1962f4d7225df to your computer and use it in GitHub Desktop.
egui/eframe with NixOS
{ 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
] ++ [
python3
libGL
libGLU
];
buildInputs = [
latest.rustChannels.stable.rust
xorg.libX11
wayland
libxkbcommon
];
shellHook = ''
export LD_LIBRARY_PATH=/run/opengl-driver/lib/:${lib.makeLibraryPath ([libGL libGLU])}
'';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment