nixpkgs-suyu/pkgs/misc/emulators/mednaffe/default.nix

44 lines
992 B
Nix
Raw Normal View History

{ stdenv
, lib
, fetchFromGitHub
, autoreconfHook
, pkg-config
, mednafen
, gtk2 ? null
, gtk3 ? null
, wrapGAppsHook
}:
2016-03-22 06:35:20 +01:00
stdenv.mkDerivation rec {
pname = "mednaffe";
2021-02-06 15:47:10 +01:00
version = "0.9.1";
2016-03-22 06:35:20 +01:00
src = fetchFromGitHub {
owner = "AmatCoder";
repo = "mednaffe";
rev = version;
2021-02-06 15:47:10 +01:00
sha256 = "sha256-YU8PHnQHAsY90LN/WDugi4WhsuZGBj/z3BS4o69qMS4=";
2016-03-22 06:35:20 +01:00
};
nativeBuildInputs = [ autoreconfHook pkg-config wrapGAppsHook ];
buildInputs = [ gtk2 gtk3 mednafen ];
2016-03-22 06:35:20 +01:00
configureFlags = [ (lib.enableFeature (gtk3 != null) "gtk3") ];
dontWrapGApps = true;
postInstall = ''
wrapProgram $out/bin/mednaffe \
--prefix PATH ':' "${mednafen}/bin" \
"''${gappsWrapperArgs[@]}"
'';
2016-03-22 06:35:20 +01:00
meta = with lib; {
description = "GTK-based frontend for mednafen emulator";
2020-03-03 13:12:44 +01:00
homepage = "https://github.com/AmatCoder/mednaffe";
license = licenses.gpl3Plus;
2020-03-03 13:12:44 +01:00
maintainers = with maintainers; [ sheenobu yegortimoshenko AndersonTorres ];
2016-03-22 06:35:20 +01:00
platforms = platforms.linux;
};
}