2017-09-30 17:32:56 +01:00
|
|
|
{ stdenv, fetchFromGitHub, makeWrapper, autoreconfHook, pkgconfig, wrapGAppsHook
|
|
|
|
, gtk2 ? null, gtk3 ? null, mednafen }:
|
|
|
|
|
|
|
|
with stdenv.lib;
|
2016-03-22 05:35:20 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "mednaffe";
|
2017-09-27 16:20:07 +01:00
|
|
|
version = "0.8.6";
|
2016-03-22 05:35:20 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2017-09-27 16:20:07 +01:00
|
|
|
owner = "AmatCoder";
|
|
|
|
repo = "mednaffe";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "13l7gls430dcslpan39k0ymdnib2v6crdsmn6bs9k9g30nfnqi6m";
|
2016-03-22 05:35:20 +00:00
|
|
|
};
|
|
|
|
|
2017-09-30 17:32:56 +01:00
|
|
|
nativeBuildInputs = [ autoreconfHook makeWrapper pkgconfig wrapGAppsHook ];
|
|
|
|
buildInputs = [ gtk2 gtk3 mednafen ];
|
2016-03-22 05:35:20 +00:00
|
|
|
|
2017-09-30 17:32:56 +01:00
|
|
|
configureFlags = [ (enableFeature (gtk3 != null) "gtk3") ];
|
|
|
|
postInstall = "wrapProgram $out/bin/mednaffe --set PATH ${mednafen}/bin";
|
2016-03-22 05:35:20 +00:00
|
|
|
|
2017-09-30 17:32:56 +01:00
|
|
|
meta = {
|
|
|
|
description = "GTK-based frontend for mednafen emulator";
|
2016-03-22 05:35:20 +00:00
|
|
|
homepage = https://github.com/AmatCoder/mednaffe;
|
2017-09-30 17:32:56 +01:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ sheenobu yegortimoshenko ];
|
2016-03-22 05:35:20 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|