2021-01-17 00:15:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, makeWrapper, autoreconfHook, pkgconfig, wrapGAppsHook
|
2020-04-24 23:36:52 +00:00
|
|
|
, gtk2 ? null, gtk3 ? null, mednafen }:
|
|
|
|
|
2021-01-17 00:15:33 +00:00
|
|
|
with lib;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "mednaffe";
|
|
|
|
version = "0.8.8";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "AmatCoder";
|
|
|
|
repo = "mednaffe";
|
2020-11-03 02:18:15 +00:00
|
|
|
rev = version;
|
2020-04-24 23:36:52 +00:00
|
|
|
sha256 = "15qk3a3l1phr8bap2ayh3c0vyvw2jwhny1iz1ajq2adyjpm9fhr7";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ autoreconfHook makeWrapper pkgconfig wrapGAppsHook ];
|
|
|
|
buildInputs = [ gtk2 gtk3 mednafen ];
|
|
|
|
|
|
|
|
configureFlags = [ (enableFeature (gtk3 != null) "gtk3") ];
|
|
|
|
postInstall = "wrapProgram $out/bin/mednaffe --set PATH ${mednafen}/bin";
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|