mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
pcsx2-bin: derivation improvements
This commit is contained in:
parent
64b7de15d3
commit
2834aef384
@ -3,12 +3,10 @@
|
||||
stdenvNoCC,
|
||||
fetchurl,
|
||||
makeWrapper,
|
||||
# To grab metadata
|
||||
pcsx2,
|
||||
}:
|
||||
|
||||
stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
pname = "pcsx2";
|
||||
pname = "pcsx2-bin";
|
||||
version = "1.7.5919";
|
||||
|
||||
src = fetchurl {
|
||||
@ -26,9 +24,8 @@ stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
mkdir -p $out/{bin,Applications}
|
||||
mkdir -p $out/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
|
||||
'';
|
||||
|
||||
@ -37,17 +34,23 @@ stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
};
|
||||
|
||||
meta = {
|
||||
inherit (pcsx2.meta)
|
||||
homepage
|
||||
longDescription
|
||||
license
|
||||
changelog
|
||||
downloadPage
|
||||
;
|
||||
description = "Playstation 2 emulator; precompiled binary for MacOS, repacked from official website";
|
||||
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
|
||||
];
|
||||
maintainers = with lib.maintainers; [ matteopacini ];
|
||||
mainProgram = "pcsx2-qt";
|
||||
platforms = lib.systems.inspect.patternLogicalAnd lib.systems.inspect.patterns.isDarwin lib.systems.inspect.patterns.isx86_64;
|
||||
platforms = [ "x86_64-darwin" ];
|
||||
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
|
||||
};
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user