mednaffe: Enable for Darwin, fix wrapping

This commit is contained in:
OPNA2608 2022-02-22 22:06:48 +01:00
parent 3e3cb9b7c9
commit 6f7d5cebf2

View file

@ -20,11 +20,15 @@ stdenv.mkDerivation rec {
}; };
nativeBuildInputs = [ autoreconfHook pkg-config wrapGAppsHook ]; nativeBuildInputs = [ autoreconfHook pkg-config wrapGAppsHook ];
buildInputs = [ gtk3 mednafen ]; buildInputs = [ gtk3 mednafen ];
postInstall = '' enableParallelBuilding = true;
wrapProgram $out/bin/mednaffe \
preFixup = ''
gappsWrapperArgs+=(
--prefix PATH ':' "${mednafen}/bin" --prefix PATH ':' "${mednafen}/bin"
)
''; '';
meta = with lib; { meta = with lib; {
@ -32,6 +36,6 @@ stdenv.mkDerivation rec {
homepage = "https://github.com/AmatCoder/mednaffe"; homepage = "https://github.com/AmatCoder/mednaffe";
license = licenses.gpl3Plus; license = licenses.gpl3Plus;
maintainers = with maintainers; [ sheenobu yana AndersonTorres ]; maintainers = with maintainers; [ sheenobu yana AndersonTorres ];
platforms = platforms.linux; platforms = platforms.unix;
}; };
} }