44 lines
992 B
Nix
44 lines
992 B
Nix
{ stdenv
|
|
, lib
|
|
, fetchFromGitHub
|
|
, autoreconfHook
|
|
, pkg-config
|
|
, mednafen
|
|
, gtk2 ? null
|
|
, gtk3 ? null
|
|
, wrapGAppsHook
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "mednaffe";
|
|
version = "0.9.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "AmatCoder";
|
|
repo = "mednaffe";
|
|
rev = version;
|
|
sha256 = "sha256-YU8PHnQHAsY90LN/WDugi4WhsuZGBj/z3BS4o69qMS4=";
|
|
};
|
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config wrapGAppsHook ];
|
|
buildInputs = [ gtk2 gtk3 mednafen ];
|
|
|
|
configureFlags = [ (lib.enableFeature (gtk3 != null) "gtk3") ];
|
|
|
|
dontWrapGApps = true;
|
|
|
|
postInstall = ''
|
|
wrapProgram $out/bin/mednaffe \
|
|
--prefix PATH ':' "${mednafen}/bin" \
|
|
"''${gappsWrapperArgs[@]}"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
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;
|
|
};
|
|
}
|