Skip to content

Commit

Permalink
pcsx2-bin: "init" at 1.7.5919
Browse files Browse the repository at this point in the history
This is a repack of MacOS-only precompiled package from upstream.

Basically it is a migration of the previous Darwin-only package for pcsx2.

By request, matteo-pacini is set as the sole maintainer of this package.
  • Loading branch information
AndersonTorres committed Jul 10, 2024
1 parent 204c2b4 commit 44dae12
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 32 deletions.
47 changes: 47 additions & 0 deletions pkgs/by-name/pc/pcsx2-bin/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
lib,
stdenvNoCC,
fetchurl,
makeWrapper,
# To grab metadata
pcsx2,
}:

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

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

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 = {
inherit (pcsx2.meta) homepage longDescription license changelog downloadPage;
description = "Playstation 2 emulator; precompiled binary for MacOS, repacked from official website";
maintainers = with lib.maintainers; [
matteopacini
];
mainProgram = "pcsx2-qt";
platforms = lib.systems.inspect.patternLogicalAnd
lib.systems.inspect.patterns.isDarwin
lib.systems.inspect.patterns.isx86_64;
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
};
})
32 changes: 0 additions & 32 deletions pkgs/by-name/pc/pcsx2/darwin.nix

This file was deleted.

0 comments on commit 44dae12

Please sign in to comment.