-
-
Save cleverca22/19bbd05d4fd4c6913d96f79458b33f18 to your computer and use it in GitHub Desktop.
This file contains 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
{ stdenv, cmake, fetchFromGitHub, pkgconfig, bluez, ffmpeg, libao, libGLU_combined, gtk2, gtk3, glib, gettext, libpthreadstubs, libXrandr, libXext, libX11, libSM, | |
readline, openal, libevdev, libXdmcp, portaudio, libusb, libpulseaudio, libudev, | |
wxGTK31, soundtouch, miniupnpc, mbedtls, curlFull, lzo, sfml, enet, xdg_utils, hidapi, vulkan-loader }: | |
let | |
ishiirukaRev = "4a36badb6ff3ed533c26b3b201e6d3673a2353a8"; | |
fmconfig = fetchFromGitHub { | |
owner = "FasterMelee"; | |
repo = "FasterMelee-installer"; | |
rev = "13fd571cefe4fd1d45517efe1ce3fe2d5087c430"; | |
sha256 = "1vvwpkxixvhgamn2dpx5zfqx7m1hfr7kyhsk55j0vi2qzip5d2ir"; | |
}; | |
in stdenv.mkDerivation { | |
name = "FasterMelee-5.9"; | |
src = fetchFromGitHub { | |
owner = "FasterMelee"; | |
repo = "Ishiiruka"; | |
rev = ishiirukaRev; | |
sha256 = "15s9f08v47hnq0q2cri959b7fhfkkykylxn0y16mxr5gqcg2gcnw"; | |
}; | |
nativeBuildInputs = [ pkgconfig cmake ]; | |
buildInputs = [ | |
bluez ffmpeg libao libGLU_combined gtk2 gtk3 glib | |
gettext libpthreadstubs libXrandr libXext libX11 libSM readline openal | |
libevdev libXdmcp portaudio libusb libpulseaudio libudev | |
wxGTK31 soundtouch miniupnpc mbedtls curlFull lzo sfml enet xdg_utils hidapi vulkan-loader | |
]; | |
prePatch = '' | |
tar -xzf ${fmconfig}/config/5.9-fmconfig.tar.gz | |
sed -i 's|#include <cstring>|#include <cstring>\n#define _XSAVEINTRIN_H_INCLUDED|g' Source/Core/Common/x64CPUDetect.cpp | |
sed -i 's|DOLPHIN_VERSION_MINOR "0"|DOLPHIN_VERSION_MINOR "9"|g' CMakeLists.txt | |
''; | |
cmakeFlags = [ "-DLINUX_LOCAL_DEV=true" "-DGTK2_GLIBCONFIG_INCLUDE_DIR=${glib.out}/lib/glib-2.0/include" "-DGTK2_GDKCONFIG_INCLUDE_DIR=${gtk2}/lib/gtk-2.0/include" "-DGTK2_INCLUDE_DIRS=${gtk2}/include/gtk-2.0" "-DENABLE_LTO=True" ]; | |
preBuild = '' | |
mv ../Binaries . | |
mv ../Data/dolphin-emu.png Binaries/ | |
''; | |
installPhase = '' | |
mv Binaries/ bin/ | |
if [ -n "$prefix" ]; then | |
mkdir -p "$prefix" | |
fi | |
mkdir -p $prefix/bin | |
mv bin/dolphin-emu bin/fm | |
mv bin/dolphin-emu-nogui bin/fm-nogui | |
mv * "$prefix" | |
''; | |
meta = { | |
homepage = http://fastermelee.net/; | |
description = "Dolphin Emulator with performance tweaks and netplay capabilities."; | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment