2021-01-20 05:30:35 -08:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, autoreconfHook
|
|
|
|
, pkg-config
|
|
|
|
, mednafen
|
|
|
|
, gtk2 ? null
|
|
|
|
, gtk3 ? null
|
|
|
|
, wrapGAppsHook
|
|
|
|
}:
|
2016-03-21 22:35:20 -07:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "mednaffe";
|
2021-02-06 06:47:10 -08:00
|
|
|
version = "0.9.1";
|
2016-03-21 22:35:20 -07:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2017-09-27 08:20:07 -07:00
|
|
|
owner = "AmatCoder";
|
|
|
|
repo = "mednaffe";
|
2020-11-01 14:39:49 -08:00
|
|
|
rev = version;
|
2021-02-06 06:47:10 -08:00
|
|
|
sha256 = "sha256-YU8PHnQHAsY90LN/WDugi4WhsuZGBj/z3BS4o69qMS4=";
|
2016-03-21 22:35:20 -07:00
|
|
|
};
|
|
|
|
|
2021-01-20 05:30:35 -08:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config wrapGAppsHook ];
|
2017-09-30 09:32:56 -07:00
|
|
|
buildInputs = [ gtk2 gtk3 mednafen ];
|
2016-03-21 22:35:20 -07:00
|
|
|
|
2021-01-20 05:30:35 -08:00
|
|
|
configureFlags = [ (lib.enableFeature (gtk3 != null) "gtk3") ];
|
|
|
|
|
|
|
|
dontWrapGApps = true;
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/mednaffe \
|
|
|
|
--prefix PATH ':' "${mednafen}/bin" \
|
|
|
|
"''${gappsWrapperArgs[@]}"
|
|
|
|
'';
|
2016-03-21 22:35:20 -07:00
|
|
|
|
2021-01-20 05:30:35 -08:00
|
|
|
meta = with lib; {
|
2017-09-30 09:32:56 -07:00
|
|
|
description = "GTK-based frontend for mednafen emulator";
|
2020-03-03 04:12:44 -08:00
|
|
|
homepage = "https://github.com/AmatCoder/mednaffe";
|
2017-09-30 09:32:56 -07:00
|
|
|
license = licenses.gpl3Plus;
|
2020-03-03 04:12:44 -08:00
|
|
|
maintainers = with maintainers; [ sheenobu yegortimoshenko AndersonTorres ];
|
2016-03-21 22:35:20 -07:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|