2021-01-20 13:30:35 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, autoreconfHook
|
|
|
|
, pkg-config
|
|
|
|
, mednafen
|
2021-12-16 15:02:05 +00:00
|
|
|
, gtk3
|
2021-01-20 13:30:35 +00:00
|
|
|
, wrapGAppsHook
|
|
|
|
}:
|
2016-03-22 05:35:20 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "mednaffe";
|
2021-12-07 14:37:34 +00:00
|
|
|
version = "0.9.2";
|
2016-03-22 05:35:20 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2017-09-27 16:20:07 +01:00
|
|
|
owner = "AmatCoder";
|
|
|
|
repo = "mednaffe";
|
2020-11-01 22:39:49 +00:00
|
|
|
rev = version;
|
2021-12-07 14:37:34 +00:00
|
|
|
sha256 = "sha256-zvSAt6CMcgdoPpTTA5sPlQaWUw9LUMsR2Xg9jM2UaWY=";
|
2016-03-22 05:35:20 +00:00
|
|
|
};
|
|
|
|
|
2021-01-20 13:30:35 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config wrapGAppsHook ];
|
2022-02-22 21:06:48 +00:00
|
|
|
|
2021-12-16 15:02:05 +00:00
|
|
|
buildInputs = [ gtk3 mednafen ];
|
2021-01-20 13:30:35 +00:00
|
|
|
|
2022-02-22 21:06:48 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
gappsWrapperArgs+=(
|
2021-12-16 15:02:05 +00:00
|
|
|
--prefix PATH ':' "${mednafen}/bin"
|
2022-02-22 21:06:48 +00:00
|
|
|
)
|
2021-01-20 13:30:35 +00:00
|
|
|
'';
|
2016-03-22 05:35:20 +00:00
|
|
|
|
2021-01-20 13:30:35 +00:00
|
|
|
meta = with lib; {
|
2017-09-30 17:32:56 +01:00
|
|
|
description = "GTK-based frontend for mednafen emulator";
|
2020-03-03 12:12:44 +00:00
|
|
|
homepage = "https://github.com/AmatCoder/mednaffe";
|
2017-09-30 17:32:56 +01:00
|
|
|
license = licenses.gpl3Plus;
|
2021-12-31 18:48:55 +00:00
|
|
|
maintainers = with maintainers; [ sheenobu yana AndersonTorres ];
|
2022-02-22 21:06:48 +00:00
|
|
|
platforms = platforms.unix;
|
2016-03-22 05:35:20 +00:00
|
|
|
};
|
|
|
|
}
|