Created
November 23, 2024 12:25
-
-
Save paulfrische/319d7eafd67f948ba20d1de8357b8af2 to your computer and use it in GitHub Desktop.
using raylib-rs on nixos via devenv
This file contains hidden or 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, | |
| lib, | |
| ... | |
| }: let | |
| libs = with pkgs; [ | |
| llvmPackages.libclang | |
| libGL | |
| xorg.libX11 | |
| xorg.libXi | |
| xorg.libXcursor | |
| xorg.libXrandr | |
| xorg.libXinerama | |
| alsa-lib | |
| libpulseaudio | |
| ]; | |
| in { | |
| packages = with pkgs; | |
| [ | |
| cmake | |
| pkg-config | |
| clang | |
| ] | |
| ++ libs; | |
| env.LD_LIBRARY_PATH = lib.makeLibraryPath libs; | |
| env.LIBCLANG_PATH = "${pkgs.llvmPackages.libclang.lib}/lib"; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment