depot/third_party/nixpkgs/pkgs/by-name/po/pokemmo-installer/package.nix
Default email 7e47f3658e Project import generated by Copybara.
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
2024-09-26 11:04:55 +00:00

73 lines
1.4 KiB
Nix

{
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";
};
})