summary refs log tree commit diff
path: root/pkgs/applications/emulators/yuzu/default.nix
blob: 5f2df651f845bbdd8761b14060de924173f22467 (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
40
{ branch ? "mainline"
, libsForQt5
, fetchFromGitHub
}:

let
  # Fetched from https://api.yuzu-emu.org/gamedb, last updated 2022-03-23.
  # Please make sure to update this when updating yuzu!
  compat-list = ./compatibility-list.json;
in {
  mainline = libsForQt5.callPackage ./generic.nix rec {
    pname = "yuzu-mainline";
    version = "992";

    src = fetchFromGitHub {
      owner = "yuzu-emu";
      repo = "yuzu-mainline";
      rev = "mainline-0-${version}";
      sha256 = "1x3fwwdw86jvygbzy9k99j6avfsd867ywm2x25izw10jznpsaixs";
      fetchSubmodules = true;
    };

    inherit branch compat-list;
  };

  early-access = libsForQt5.callPackage ./generic.nix rec {
    pname = "yuzu-ea";
    version = "2690";

    src = fetchFromGitHub {
      owner = "pineappleEA";
      repo = "pineapple-src";
      rev = "EA-${version}";
      sha256 = "0zm06clbdh9cccq9932q9v976q7sjknynkdvvp04h1wcskmrxi3c";
      fetchSubmodules = true;
    };

    inherit branch compat-list;
  };
}.${branch}