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