Last active
May 7, 2024 17:59
-
-
Save TheSirC/8fc34ba9143c8fe4f0b1962f4d7225df to your computer and use it in GitHub Desktop.
egui/eframe with NixOS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ 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