nixpkgs/pkgs/by-name/pc/pcsx2-bin/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

58 lines
1.6 KiB
Nix
Raw Normal View History

{
lib,
stdenvNoCC,
fetchurl,
makeWrapper,
2024-07-24 23:22:21 +00:00
nix-update-script,
}:
stdenvNoCC.mkDerivation (finalAttrs: {
2024-07-20 09:08:24 +00:00
pname = "pcsx2-bin";
2024-07-20 09:09:00 +00:00
version = "2.1.17";
src = fetchurl {
url = "https://github.com/PCSX2/pcsx2/releases/download/v${finalAttrs.version}/pcsx2-v${finalAttrs.version}-macos-Qt.tar.xz";
2024-07-20 09:09:00 +00:00
hash = "sha256-WuxvMcGuCyTAc99JkUjG0qcV7SXWy9fmaZR0+8iGepQ=";
};
nativeBuildInputs = [ makeWrapper ];
dontPatch = true;
dontConfigure = true;
dontBuild = true;
sourceRoot = ".";
installPhase = ''
runHook preInstall
2024-07-20 09:08:24 +00:00
mkdir -p $out/Applications
cp -r "PCSX2-v${finalAttrs.version}.app" $out/Applications/PCSX2.app
runHook postInstall
'';
2024-07-12 15:40:32 +00:00
passthru = {
2024-07-24 23:22:21 +00:00
updateScript = nix-update-script { };
2024-07-12 15:40:32 +00:00
};
meta = {
2024-07-20 09:08:24 +00:00
homepage = "https://pcsx2.net";
description = "Playstation 2 emulator (precompiled binary, repacked from official website)";
longDescription = ''
PCSX2 is an open-source PlayStation 2 (AKA PS2) emulator. Its purpose is
to emulate the PS2 hardware, using a combination of MIPS CPU Interpreters,
Recompilers and a Virtual Machine which manages hardware states and PS2
system memory. This allows you to play PS2 games on your PC, with many
additional features and benefits.
'';
changelog = "https://github.com/PCSX2/pcsx2/releases/tag/v${finalAttrs.version}";
downloadPage = "https://github.com/PCSX2/pcsx2";
license = with lib.licenses; [
gpl3Plus
lgpl3Plus
];
2024-07-12 15:40:32 +00:00
maintainers = with lib.maintainers; [ matteopacini ];
2024-07-20 09:08:24 +00:00
platforms = [ "x86_64-darwin" ];
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
};
})