3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/misc/emulators/mednaffe/default.nix

38 lines
828 B
Nix
Raw Normal View History

{ stdenv
, lib
, fetchFromGitHub
, autoreconfHook
, pkg-config
, mednafen
, gtk3
, wrapGAppsHook
}:
2016-03-22 05:35:20 +00:00
stdenv.mkDerivation rec {
pname = "mednaffe";
2021-12-07 14:37:34 +00:00
version = "0.9.2";
2016-03-22 05:35:20 +00:00
src = fetchFromGitHub {
owner = "AmatCoder";
repo = "mednaffe";
rev = version;
2021-12-07 14:37:34 +00:00
sha256 = "sha256-zvSAt6CMcgdoPpTTA5sPlQaWUw9LUMsR2Xg9jM2UaWY=";
2016-03-22 05:35:20 +00:00
};
nativeBuildInputs = [ autoreconfHook pkg-config wrapGAppsHook ];
buildInputs = [ gtk3 mednafen ];
postInstall = ''
wrapProgram $out/bin/mednaffe \
--prefix PATH ':' "${mednafen}/bin"
'';
2016-03-22 05:35:20 +00:00
meta = with lib; {
description = "GTK-based frontend for mednafen emulator";
2020-03-03 12:12:44 +00:00
homepage = "https://github.com/AmatCoder/mednaffe";
license = licenses.gpl3Plus;
2021-12-31 18:48:55 +00:00
maintainers = with maintainers; [ sheenobu yana AndersonTorres ];
2016-03-22 05:35:20 +00:00
platforms = platforms.linux;
};
}