mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-12-16 12:09:07 +00:00
Some checks failed
Build and Release / reuse (push) Has been cancelled
Build and Release / clang-format (push) Has been cancelled
Build and Release / get-info (push) Has been cancelled
Build and Release / windows-sdl (push) Has been cancelled
Build and Release / macos-sdl (push) Has been cancelled
Build and Release / linux-sdl (push) Has been cancelled
Build and Release / linux-sdl-gcc (push) Has been cancelled
Build and Release / pre-release (push) Has been cancelled
64 lines
1.3 KiB
Nix
64 lines
1.3 KiB
Nix
# SPDX-FileCopyrightText: 2024 shadPS4 Emulator Project
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
with import (fetchTarball "https://github.com/nixos/nixpkgs/archive/cfd19cdc54680956dc1816ac577abba6b58b901c.tar.gz") { };
|
|
|
|
pkgs.mkShell {
|
|
name = "shadps4-build-env";
|
|
|
|
nativeBuildInputs = [
|
|
pkgs.llvmPackages_18.clang
|
|
pkgs.cmake
|
|
pkgs.pkg-config
|
|
pkgs.git
|
|
];
|
|
|
|
buildInputs = [
|
|
pkgs.alsa-lib
|
|
pkgs.libpulseaudio
|
|
pkgs.openal
|
|
pkgs.zlib
|
|
pkgs.libedit
|
|
pkgs.udev
|
|
pkgs.libevdev
|
|
pkgs.SDL2
|
|
pkgs.jack2
|
|
pkgs.sndio
|
|
|
|
pkgs.vulkan-headers
|
|
pkgs.vulkan-utility-libraries
|
|
pkgs.vulkan-tools
|
|
|
|
pkgs.ffmpeg
|
|
pkgs.fmt
|
|
pkgs.glslang
|
|
pkgs.libxkbcommon
|
|
pkgs.wayland
|
|
pkgs.xorg.libxcb
|
|
pkgs.xorg.xcbutil
|
|
pkgs.xorg.xcbutilkeysyms
|
|
pkgs.xorg.xcbutilwm
|
|
pkgs.sdl3
|
|
pkgs.stb
|
|
pkgs.wayland-protocols
|
|
pkgs.libpng
|
|
];
|
|
|
|
shellHook = ''
|
|
echo "Entering shadPS4 dev shell"
|
|
export CMAKE_PREFIX_PATH="${pkgs.vulkan-headers}:$CMAKE_PREFIX_PATH"
|
|
|
|
# OpenGL
|
|
export LD_LIBRARY_PATH="${
|
|
pkgs.lib.makeLibraryPath [
|
|
pkgs.libglvnd
|
|
pkgs.vulkan-tools
|
|
]
|
|
}:$LD_LIBRARY_PATH"
|
|
|
|
export LDFLAGS="-L${pkgs.llvmPackages_18.libcxx}/lib -lc++"
|
|
export LC_ALL="C.UTF-8"
|
|
export XAUTHORITY=${builtins.getEnv "XAUTHORITY"}
|
|
'';
|
|
}
|