8ac5e011d6
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
52 lines
1.3 KiB
Nix
52 lines
1.3 KiB
Nix
{ stdenv, fetchurl, alsaLib, curl, gdk-pixbuf, glib, gtk3, libGLU, libGL,
|
|
libX11, openssl_1_0_2, ncurses5, SDL, SDL_ttf, unzip, zlib, wrapGAppsHook, autoPatchelfHook }:
|
|
|
|
with stdenv.lib;
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "epsxe";
|
|
version = "2.0.5";
|
|
|
|
src = let
|
|
version2 = replaceStrings ["."] [""] version;
|
|
platform = "linux" + (optionalString stdenv.is64bit "_x64");
|
|
in fetchurl {
|
|
url = "https://www.epsxe.com/files/ePSXe${version2}${platform}.zip";
|
|
sha256 = if stdenv.is64bit
|
|
then "16fa9qc2xhaz1f6294m0b56s5l86cbmclwm9w3mqnch0yjsrvab0"
|
|
else "1677lclam557kp8jwvchdrk27zfj50fqx2q9i3bcx26d9k61q3kl";
|
|
};
|
|
|
|
nativeBuildInputs = [ unzip wrapGAppsHook autoPatchelfHook ];
|
|
sourceRoot = ".";
|
|
|
|
buildInputs = [
|
|
alsaLib
|
|
curl
|
|
gdk-pixbuf
|
|
glib
|
|
gtk3
|
|
libX11
|
|
libGLU libGL
|
|
openssl_1_0_2
|
|
ncurses5
|
|
SDL
|
|
SDL_ttf
|
|
stdenv.cc.cc.lib
|
|
zlib
|
|
];
|
|
|
|
dontStrip = true;
|
|
|
|
installPhase = ''
|
|
install -D ${if stdenv.is64bit then "epsxe_x64" else "ePSXe"} $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" ];
|
|
};
|
|
}
|