nixpkgs/pkgs/by-name/me/mednaffe/package.nix
Anderson Torres bd75a7b3cb mednaffe: 0.9.2 -> 0.9.3
Co-authored-by: R. RyanTM <ryantm-bot@ryantm.com>
2024-04-17 22:25:17 -03:00

53 lines
946 B
Nix

{
lib,
autoreconfHook,
fetchFromGitHub,
gtk3,
mednafen,
pkg-config,
stdenv,
wrapGAppsHook,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "mednaffe";
version = "0.9.3";
src = fetchFromGitHub {
owner = "AmatCoder";
repo = "mednaffe";
rev = finalAttrs.version;
hash = "sha256-ZizW0EeY/Cc68m87cnbLAkx3G/ULyFT5b6Ku2ObzFRU=";
};
nativeBuildInputs = [
autoreconfHook
pkg-config
wrapGAppsHook
];
buildInputs = [
gtk3
mednafen
];
enableParallelBuilding = true;
strictDeps = true;
preFixup = ''
gappsWrapperArgs+=(
--prefix PATH ':' "${mednafen}/bin"
)
'';
meta = {
description = "GTK-based frontend for mednafen emulator";
mainProgram = "mednaffe";
homepage = "https://github.com/AmatCoder/mednaffe";
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ AndersonTorres ];
platforms = lib.platforms.unix;
};
})