2021-06-10 03:57:09 +01:00
|
|
|
{ lib, stdenv, fetchurl, alsa-lib, curl, gdk-pixbuf, glib, gtk3, libGLU, libGL,
|
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
|
|
|
|
2021-01-15 13:21:58 +00:00
|
|
|
with lib;
|
2017-09-26 20:06:22 +01:00
|
|
|
|
|
|
|
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 = [
|
2021-06-10 03:57:09 +01:00
|
|
|
alsa-lib
|
2017-09-26 20:06:22 +01:00
|
|
|
curl
|
2019-05-22 12:03:39 +01:00
|
|
|
gdk-pixbuf
|
2017-09-26 20:06:22 +01:00
|
|
|
glib
|
|
|
|
gtk3
|
|
|
|
libX11
|
2019-11-10 16:44:34 +00:00
|
|
|
libGLU libGL
|
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 = {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://epsxe.com/";
|
2017-09-26 20:06:22 +01:00
|
|
|
description = "Enhanced PSX (PlayStation 1) emulator";
|
|
|
|
license = licenses.unfree;
|
|
|
|
maintainers = with maintainers; [ yegortimoshenko ];
|
|
|
|
platforms = [ "i686-linux" "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
}
|