Skip to content

Instantly share code, notes, and snippets.

@paulfrische
Created November 23, 2024 12:25
Show Gist options
  • Select an option

  • Save paulfrische/319d7eafd67f948ba20d1de8357b8af2 to your computer and use it in GitHub Desktop.

Select an option

Save paulfrische/319d7eafd67f948ba20d1de8357b8af2 to your computer and use it in GitHub Desktop.
using raylib-rs on nixos via devenv
{
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