about summary refs log tree commit diff
path: root/pkgs/by-name/pc/pcsx2/package.nix
blob: 4454727158a907d3c1f359db29f016c2341b58fc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{
  stdenv,
  lib,
  callPackage,
}:
let
  pname = "pcsx2";
  version = "1.7.5779";
  meta = with lib; {
    description = "Playstation 2 emulator";
    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.
    '';
    hydraPlatforms = platforms.linux;
    homepage = "https://pcsx2.net";
    license = with licenses; [
      gpl3Plus
      lgpl3Plus
    ];
    maintainers = with maintainers; [
      hrdinka
      govanify
      matteopacini
    ];
    mainProgram = "pcsx2-qt";
    platforms = [ "x86_64-linux" "x86_64-darwin" ];
    sourceProvenance =
      lib.optional stdenv.isDarwin sourceTypes.binaryNativeCode
      ++ lib.optional stdenv.isLinux sourceTypes.fromSource;
  };
in
if stdenv.isDarwin then
  callPackage ./darwin.nix { inherit pname version meta; }
else
  callPackage ./linux.nix { inherit pname version meta; }