-
-
Notifications
You must be signed in to change notification settings - Fork 13.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
1 parent
f277070
commit a47fc28
Showing
2 changed files
with
47 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ]; | ||
}; | ||
}) |
This file was deleted.
Oops, something went wrong.