Skip to content

Commit

Permalink
dolphin: add Need4speed402's wayland rebase/patch
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewCroughan committed Jul 19, 2021
1 parent af7a317 commit 3863ef1
Show file tree
Hide file tree
Showing 2 changed files with 2,364 additions and 5 deletions.
15 changes: 10 additions & 5 deletions pkgs/misc/emulators/dolphin-emu/master.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
, libSM, libXdmcp, readline, openal, udev, libevdev, portaudio, curl, alsa-lib
, miniupnpc, enet, mbedtls, soundtouch, sfml
, vulkan-loader ? null, libpulseaudio ? null
, extra-cmake-modules
, wayland, wayland-protocols

# - Inputs used for Darwin
, CoreBluetooth, ForceFeedback, IOKit, OpenGL, libpng, hidapi }:
Expand All @@ -21,30 +23,33 @@ let
};
in stdenv.mkDerivation rec {
pname = "dolphin-emu";
version = "5.0-14002";
version = "5.0-14652";

src = fetchFromGitHub {
owner = "dolphin-emu";
repo = "dolphin";
rev = "53222560650e4a99eceafcd537d4e04d1c50b3a6";
sha256 = "1m71gk9hm011fpv5hmpladf7abkylmawgr60d0czkr276pzg04ky";
rev = "6e7698a3540eb3e9186bea442f08d5d96544d73f";
sha256 = "sha256-jVOlXeq0cWRCKzfoZByHN/uS1pVN/xCNXpLnyN0HoWw=";
};

nativeBuildInputs = [ cmake pkg-config ]
patches = [ ./n4s.patch ];

nativeBuildInputs = [ extra-cmake-modules cmake pkg-config ]
++ lib.optional stdenv.isLinux wrapQtAppsHook;

buildInputs = [
curl ffmpeg libao libGLU libGL pcre gettext libpthreadstubs libpulseaudio
libXrandr libXext libXxf86vm libXinerama libSM readline openal libXdmcp lzo
portaudio libusb1 libpng hidapi miniupnpc enet mbedtls soundtouch sfml
qtbase
qtbase wayland wayland-protocols
] ++ lib.optionals stdenv.isLinux [
bluez udev libevdev alsa-lib vulkan-loader
] ++ lib.optionals stdenv.isDarwin [
CoreBluetooth OpenGL ForceFeedback IOKit
];

cmakeFlags = [
"-DENABLE_WAYLAND=1"
"-DUSE_SHARED_ENET=ON"
"-DENABLE_LTO=ON"
"-DDOLPHIN_WC_REVISION=${src.rev}"
Expand Down
Loading

0 comments on commit 3863ef1

Please sign in to comment.