2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, meson, ninja, pkg-config, wrapGAppsHook
|
2021-12-06 16:07:01 +00:00
|
|
|
, SDL2, zlib, gtk3, libxml2, libXv, libepoxy, minizip, pulseaudio, portaudio }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "snes9x-gtk";
|
2020-05-03 17:38:23 +00:00
|
|
|
version = "1.60";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "snes9xgit";
|
|
|
|
repo = "snes9x";
|
|
|
|
rev = version;
|
2020-05-03 17:38:23 +00:00
|
|
|
sha256 = "12hpn7zcdvp30ldpw2zf115yjqv55n1ldjbids7vx0lvbpr06dm1";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ meson ninja pkg-config wrapGAppsHook ];
|
2021-12-06 16:07:01 +00:00
|
|
|
buildInputs = [ SDL2 zlib gtk3 libxml2 libXv libepoxy minizip pulseaudio portaudio ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-05-03 17:38:23 +00:00
|
|
|
preConfigure = "cd gtk";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2021-03-23 19:22:30 +00:00
|
|
|
homepage = "https://www.snes9x.com";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Super Nintendo Entertainment System (SNES) emulator";
|
|
|
|
|
|
|
|
longDescription = ''
|
|
|
|
Snes9x is a portable, freeware Super Nintendo Entertainment System (SNES)
|
|
|
|
emulator. It basically allows you to play most games designed for the SNES
|
|
|
|
and Super Famicom Nintendo game systems on your PC or Workstation; which
|
|
|
|
includes some real gems that were only ever released in Japan.
|
|
|
|
'';
|
|
|
|
|
2021-03-23 19:22:30 +00:00
|
|
|
# see https://github.com/snes9xgit/snes9x/blob/master/LICENSE for exact details
|
|
|
|
license = licenses.unfreeRedistributable;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ qknight ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|