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 ];
buildInputs = [ gtk3 mednafen ];
postInstall = ''
wrapProgram $out/bin/mednaffe \
enableParallelBuilding = true;
preFixup = ''
gappsWrapperArgs+=(
--prefix PATH ':' "${mednafen}/bin"
)
'';
meta = with lib; {
@ -32,6 +36,6 @@ stdenv.mkDerivation rec {
homepage = "https://github.com/AmatCoder/mednaffe";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ sheenobu yana AndersonTorres ];
platforms = platforms.linux;
platforms = platforms.unix;
};
}