2021-02-05 17:12:51 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, autoreconfHook
|
|
|
|
, pkg-config
|
|
|
|
, mednafen
|
|
|
|
, gtk2 ? null
|
|
|
|
, gtk3 ? null
|
|
|
|
, wrapGAppsHook
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "mednaffe";
|
2021-03-09 03:18:52 +00:00
|
|
|
version = "0.9.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "AmatCoder";
|
|
|
|
repo = "mednaffe";
|
2020-11-03 02:18:15 +00:00
|
|
|
rev = version;
|
2021-03-09 03:18:52 +00:00
|
|
|
sha256 = "sha256-YU8PHnQHAsY90LN/WDugi4WhsuZGBj/z3BS4o69qMS4=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config wrapGAppsHook ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ gtk2 gtk3 mednafen ];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
configureFlags = [ (lib.enableFeature (gtk3 != null) "gtk3") ];
|
|
|
|
|
|
|
|
dontWrapGApps = true;
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/mednaffe \
|
|
|
|
--prefix PATH ':' "${mednafen}/bin" \
|
|
|
|
"''${gappsWrapperArgs[@]}"
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "GTK-based frontend for mednafen emulator";
|
|
|
|
homepage = "https://github.com/AmatCoder/mednaffe";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ sheenobu yegortimoshenko AndersonTorres ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|