nixpkgs/pkgs/misc/emulators/mednaffe/default.nix
Zane van Iperen cef1694515 mednaffe: remove gtk2
Upstream has removed support for it.
2021-12-18 10:15:33 +00:00

37 lines
839 B
Nix

{ stdenv
, lib
, fetchFromGitHub
, autoreconfHook
, pkg-config
, mednafen
, gtk3
, wrapGAppsHook
}:
stdenv.mkDerivation rec {
pname = "mednaffe";
version = "0.9.2";
src = fetchFromGitHub {
owner = "AmatCoder";
repo = "mednaffe";
rev = version;
sha256 = "sha256-zvSAt6CMcgdoPpTTA5sPlQaWUw9LUMsR2Xg9jM2UaWY=";
};
nativeBuildInputs = [ autoreconfHook pkg-config wrapGAppsHook ];
buildInputs = [ gtk3 mednafen ];
postInstall = ''
wrapProgram $out/bin/mednaffe \
--prefix PATH ':' "${mednafen}/bin"
'';
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;
};
}