pokemmo-installer: init at 1.4.8

This commit is contained in:
Kira Bruneau 2024-09-12 10:20:22 -04:00
parent 159be5db48
commit e2594868c9

View File

@ -0,0 +1,73 @@
{
lib,
stdenv,
fetchFromGitLab,
makeWrapper,
coreutils,
findutils,
gnugrep,
jre,
openssl,
util-linux,
wget,
which,
zenity,
libGL,
libpulseaudio,
nix-update-script,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "pokemmo-installer";
version = "1.4.8";
src = fetchFromGitLab {
owner = "coringao";
repo = "pokemmo-installer";
rev = "refs/tags/${finalAttrs.version}";
hash = "sha256-uSbnXBpkeGM9X6DU7AikT7hG/emu67PXuGdm6xfB8To=";
};
nativeBuildInputs = [ makeWrapper ];
installFlags = [
"PREFIX=${placeholder "out"}"
# BINDIR defaults to $(PREFIX)/games
"BINDIR=${placeholder "out"}/bin"
];
postFixup = ''
wrapProgram "$out/bin/pokemmo-installer" \
--prefix PATH : ${
lib.makeBinPath [
coreutils
findutils
gnugrep
jre
openssl
util-linux
wget
which
zenity
]
} \
--prefix LD_LIBRARY_PATH : ${
lib.makeLibraryPath [
libGL
libpulseaudio
]
}
'';
passthru.updateScript = nix-update-script { };
meta = with lib; {
description = "Installer and Launcher for the PokeMMO emulator";
homepage = "https://pokemmo.eu";
license = licenses.gpl3Only;
maintainers = with maintainers; [ kira-bruneau ];
platforms = platforms.linux;
mainProgram = "pokemmo-installer";
};
})