summary refs log tree commit diff
path: root/pkgs/applications/emulators/yuzu/generic.nix
diff options
context:
space:
mode:
authorK900 <me@0upti.me>2023-06-22 13:07:33 +0300
committerK900 <me@0upti.me>2023-06-22 13:43:34 +0300
commitc96d4190ab6e81cef141d3171953879c00f15a1f (patch)
tree353807d4efaaeab0a0a9cb7bf1dd6910db878c80 /pkgs/applications/emulators/yuzu/generic.nix
parenta57ad669e1d6258e8dccc20c150683ba3e1961c4 (diff)
downloadnixpkgs-c96d4190ab6e81cef141d3171953879c00f15a1f.tar
nixpkgs-c96d4190ab6e81cef141d3171953879c00f15a1f.tar.gz
nixpkgs-c96d4190ab6e81cef141d3171953879c00f15a1f.tar.bz2
nixpkgs-c96d4190ab6e81cef141d3171953879c00f15a1f.tar.lz
nixpkgs-c96d4190ab6e81cef141d3171953879c00f15a1f.tar.xz
nixpkgs-c96d4190ab6e81cef141d3171953879c00f15a1f.tar.zst
nixpkgs-c96d4190ab6e81cef141d3171953879c00f15a1f.zip
yuzu: 1452 -> 1475, yuzu-ea: 3621 -> 3702
Diffstat (limited to 'pkgs/applications/emulators/yuzu/generic.nix')
-rw-r--r--pkgs/applications/emulators/yuzu/generic.nix13
1 files changed, 12 insertions, 1 deletions
diff --git a/pkgs/applications/emulators/yuzu/generic.nix b/pkgs/applications/emulators/yuzu/generic.nix
index d583928d88c..3fdd6db8466 100644
--- a/pkgs/applications/emulators/yuzu/generic.nix
+++ b/pkgs/applications/emulators/yuzu/generic.nix
@@ -15,6 +15,7 @@
 , discord-rpc
 , doxygen
 , enet
+, fetchurl
 , ffmpeg
 , fmt
 , glslang
@@ -47,7 +48,13 @@
 , zstd
 }:
 
-stdenv.mkDerivation {
+let
+  tzinfoVersion = "220816";
+  tzinfo = fetchurl {
+    url = "https://github.com/lat9nq/tzdb_to_nx/releases/download/${tzinfoVersion}/${tzinfoVersion}.zip";
+    hash = "sha256-yv8ykEYPu9upeXovei0u16iqQ7NasH6873KnQy4+KwI=";
+  };
+in stdenv.mkDerivation {
   pname = "yuzu-${branch}";
 
   inherit version src;
@@ -141,6 +148,10 @@ stdenv.mkDerivation {
       "-DTITLE_BAR_FORMAT_IDLE=yuzu | ${branch} ${version} (nixpkgs) {}"
       "-DTITLE_BAR_FORMAT_RUNNING=yuzu | ${branch} ${version} (nixpkgs) | {}"
     )
+
+    # provide pre-downloaded tz data
+    mkdir -p build/externals/nx_tzdb
+    ln -sf ${tzinfo} build/externals/nx_tzdb/${tzinfoVersion}.zip
   '';
 
   # This must be done after cmake finishes as it overwrites the file