mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-27 14:34:33 +00:00
raylib: fix darwin builds
This commit is contained in:
parent
e5f138e033
commit
01033afa0b
@ -36,9 +36,8 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
autoPatchelfHook
|
||||
cmake
|
||||
];
|
||||
] ++ lib.optional stdenv.isLinux autoPatchelfHook;
|
||||
|
||||
buildInputs = [ glfw ]
|
||||
++ lib.optionals stdenv.isLinux [ mesa libXi libXcursor libXrandr libXinerama ]
|
||||
@ -71,7 +70,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
];
|
||||
|
||||
# fix libasound.so/libpulse.so not being found
|
||||
appendRunpaths = [
|
||||
appendRunpaths = lib.optionals stdenv.isLinux [
|
||||
(lib.makeLibraryPath (lib.optional alsaSupport alsa-lib ++ lib.optional pulseSupport libpulseaudio))
|
||||
];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user