2018-07-21 02:44:44 +02:00
|
|
|
{ stdenv, fetchurl, alsaLib, curl, gdk_pixbuf, glib, gtk3,
|
2017-09-26 21:06:22 +02:00
|
|
|
libX11, openssl, ncurses5, SDL, SDL_ttf, unzip, zlib, wrapGAppsHook }:
|
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "epsxe-${version}";
|
|
|
|
version = "2.0.5";
|
|
|
|
|
2018-03-21 03:44:02 +01:00
|
|
|
src = let
|
2017-09-26 21:06:22 +02:00
|
|
|
version2 = concatStrings (splitString "." version);
|
|
|
|
platform = "linux" + (optionalString stdenv.is64bit "_x64");
|
|
|
|
in fetchurl {
|
2018-06-28 20:43:35 +02:00
|
|
|
url = "https://www.epsxe.com/files/ePSXe${version2}${platform}.zip";
|
2017-09-26 21:06:22 +02:00
|
|
|
sha256 = if stdenv.is64bit
|
|
|
|
then "16fa9qc2xhaz1f6294m0b56s5l86cbmclwm9w3mqnch0yjsrvab0"
|
|
|
|
else "1677lclam557kp8jwvchdrk27zfj50fqx2q9i3bcx26d9k61q3kl";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ unzip wrapGAppsHook ];
|
|
|
|
sourceRoot = ".";
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
alsaLib
|
|
|
|
curl
|
|
|
|
gdk_pixbuf
|
|
|
|
glib
|
|
|
|
gtk3
|
|
|
|
libX11
|
|
|
|
openssl
|
|
|
|
ncurses5
|
|
|
|
SDL
|
|
|
|
SDL_ttf
|
|
|
|
stdenv.cc.cc.lib
|
|
|
|
zlib
|
|
|
|
];
|
|
|
|
|
|
|
|
dontStrip = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
2017-09-26 21:20:30 +02:00
|
|
|
install -D ${if stdenv.is64bit then "epsxe_x64" else "ePSXe"} $out/bin/epsxe
|
2017-09-26 21:06:22 +02:00
|
|
|
patchelf \
|
|
|
|
--set-interpreter $(cat ${stdenv.cc}/nix-support/dynamic-linker) \
|
|
|
|
--set-rpath ${makeLibraryPath buildInputs} \
|
|
|
|
$out/bin/epsxe
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://epsxe.com/;
|
|
|
|
description = "Enhanced PSX (PlayStation 1) emulator";
|
|
|
|
license = licenses.unfree;
|
|
|
|
maintainers = with maintainers; [ yegortimoshenko ];
|
|
|
|
platforms = [ "i686-linux" "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
}
|