2021-02-05 17:12:51 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, autoreconfHook
|
|
|
|
, pkg-config
|
|
|
|
, mednafen
|
2021-12-19 01:06:50 +00:00
|
|
|
, gtk3
|
2021-02-05 17:12:51 +00:00
|
|
|
, wrapGAppsHook
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "mednaffe";
|
2021-12-19 01:06:50 +00:00
|
|
|
version = "0.9.2";
|
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-12-19 01:06:50 +00:00
|
|
|
sha256 = "sha256-zvSAt6CMcgdoPpTTA5sPlQaWUw9LUMsR2Xg9jM2UaWY=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config wrapGAppsHook ];
|
2022-03-05 16:20:37 +00:00
|
|
|
|
2021-12-19 01:06:50 +00:00
|
|
|
buildInputs = [ gtk3 mednafen ];
|
2021-02-05 17:12:51 +00:00
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
gappsWrapperArgs+=(
|
2021-12-19 01:06:50 +00:00
|
|
|
--prefix PATH ':' "${mednafen}/bin"
|
2022-03-05 16:20:37 +00:00
|
|
|
)
|
2021-02-05 17:12:51 +00:00
|
|
|
'';
|
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;
|
2022-01-03 16:56:52 +00:00
|
|
|
maintainers = with maintainers; [ sheenobu yana AndersonTorres ];
|
2022-03-05 16:20:37 +00:00
|
|
|
platforms = platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|