2019-05-22 12:03:39 +01:00
|
|
|
{ stdenv, fetchurl, alsaLib, curl, gdk-pixbuf, glib, gtk3, libGLU_combined,
|
2019-10-25 18:51:37 +01:00
|
|
|
libX11, openssl_1_0_2, ncurses5, SDL, SDL_ttf, unzip, zlib, wrapGAppsHook, autoPatchelfHook }:
|
2017-09-26 20:06:22 +01:00
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "epsxe";
|
2017-09-26 20:06:22 +01:00
|
|
|
version = "2.0.5";
|
|
|
|
|
2018-03-21 02:44:02 +00:00
|
|
|
src = let
|
2019-09-24 10:24:13 +01:00
|
|
|
version2 = replaceStrings ["."] [""] version;
|
2017-09-26 20:06:22 +01:00
|
|
|
platform = "linux" + (optionalString stdenv.is64bit "_x64");
|
|
|
|
in fetchurl {
|
2018-06-28 19:43:35 +01:00
|
|
|
url = "https://www.epsxe.com/files/ePSXe${version2}${platform}.zip";
|
2017-09-26 20:06:22 +01:00
|
|
|
sha256 = if stdenv.is64bit
|
|
|
|
then "16fa9qc2xhaz1f6294m0b56s5l86cbmclwm9w3mqnch0yjsrvab0"
|
|
|
|
else "1677lclam557kp8jwvchdrk27zfj50fqx2q9i3bcx26d9k61q3kl";
|
|
|
|
};
|
|
|
|
|
2019-10-25 18:51:37 +01:00
|
|
|
nativeBuildInputs = [ unzip wrapGAppsHook autoPatchelfHook ];
|
2017-09-26 20:06:22 +01:00
|
|
|
sourceRoot = ".";
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
alsaLib
|
|
|
|
curl
|
2019-05-22 12:03:39 +01:00
|
|
|
gdk-pixbuf
|
2017-09-26 20:06:22 +01:00
|
|
|
glib
|
|
|
|
gtk3
|
|
|
|
libX11
|
2018-12-10 21:41:22 +00:00
|
|
|
libGLU_combined
|
2019-10-25 18:51:37 +01:00
|
|
|
openssl_1_0_2
|
2017-09-26 20:06:22 +01:00
|
|
|
ncurses5
|
|
|
|
SDL
|
|
|
|
SDL_ttf
|
|
|
|
stdenv.cc.cc.lib
|
|
|
|
zlib
|
|
|
|
];
|
|
|
|
|
|
|
|
dontStrip = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
2017-09-26 20:20:30 +01:00
|
|
|
install -D ${if stdenv.is64bit then "epsxe_x64" else "ePSXe"} $out/bin/epsxe
|
2017-09-26 20:06:22 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://epsxe.com/;
|
|
|
|
description = "Enhanced PSX (PlayStation 1) emulator";
|
|
|
|
license = licenses.unfree;
|
|
|
|
maintainers = with maintainers; [ yegortimoshenko ];
|
|
|
|
platforms = [ "i686-linux" "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
}
|