Skip to content

Commit

Permalink
pcsx2-bin: "init" at 1.7.5779
Browse files Browse the repository at this point in the history
Basically, extirpate the Darwin-specific code from the previous pcsx2.
  • Loading branch information
AndersonTorres committed Jul 8, 2024
1 parent 75bc177 commit c4eae18
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 32 deletions.
58 changes: 58 additions & 0 deletions pkgs/by-name/pc/pcsx2-bin/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{
lib,
fetchurl,
makeWrapper,
stdenvNoCC,
}:

stdenvNoCC.mkDerivation (finalAttrs: {
pname = "pcsx2";
version = "1.7.5779";

src = fetchurl {
url = "https://github.com/PCSX2/pcsx2/releases/download/v${finalAttrs.version}/pcsx2-v${finalAttrs.version}-macos-Qt.tar.xz";
hash = "sha256-QdYV63lrAwYSDhUOy4nB8qL5LfZkrg/EYHtY2smtZuk=";
};

nativeBuildInputs = [ makeWrapper ];

dontPatch = true;
dontConfigure = true;
dontBuild = true;

sourceRoot = ".";

installPhase = ''
runHook preInstall
mkdir -p $out/{bin,Applications}
cp -r "PCSX2-v${finalAttrs.version}.app" $out/Applications/PCSX2.app
makeWrapper $out/Applications/PCSX2.app/Contents/MacOS/PCSX2 $out/bin/pcsx2-qt
runHook postInstall
'';

meta = {
homepage = "https://pcsx2.net";
description = "Playstation 2 emulator; precompiled binary for MacOS x64, 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.
'';
license = with lib.licenses; [
gpl3Plus
lgpl3Plus
];
mainProgram = "pcsx2-qt";
maintainers = with lib.maintainers; [
hrdinka
govanify
matteopacini
];
platforms = lib.systems.inspect.patternLogicalAnd
lib.systems.inspect.patterns.isDarwin
lib.systems.inspect.patterns.isx86_64;
sourceProvenance = lib.sourceTypes.binaryNativeCode;
};
})
32 changes: 0 additions & 32 deletions pkgs/by-name/pc/pcsx2/darwin.nix

This file was deleted.

0 comments on commit c4eae18

Please sign in to comment.