From 59a5a09b670af644af5b40d2c3d5653085f9ef9c Mon Sep 17 00:00:00 2001 From: Nabile Rahmani Date: Sat, 5 Oct 2024 17:53:29 +0200 Subject: [PATCH] ryujinx: archive.org tarball mirror Should fix source builds by relying on our beloved archive.org to host a [SHA256-matching tarball generated from a mirror of the repo](https://archive.org/details/ryujinx-5dbba-07e-33e-83c-9047dcbb-701c-9655edbbe-89086.tar). I have only `nix repl`'d the fetchTarball expression for its consistency check, as I do not currently have the time nor storage to build the package locally, sorry about that. We could also generate archives to address https://github.com/NixOS/nixpkgs/issues/345410 and the 24.05 branch. Supersedes: https://github.com/NixOS/nixpkgs/pull/345881 --- pkgs/by-name/ry/ryujinx/package.nix | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/pkgs/by-name/ry/ryujinx/package.nix b/pkgs/by-name/ry/ryujinx/package.nix index 035ac0a0b7adc..6e698c3314f05 100644 --- a/pkgs/by-name/ry/ryujinx/package.nix +++ b/pkgs/by-name/ry/ryujinx/package.nix @@ -1,7 +1,7 @@ { lib , buildDotnetModule , dotnetCorePackages -, fetchFromGitHub +, fetchzip , libX11 , libgdiplus , ffmpeg @@ -27,10 +27,8 @@ buildDotnetModule rec { pname = "ryujinx"; version = "1.1.1401"; # Based off of the official github actions builds: https://github.com/Ryujinx/Ryujinx/actions/workflows/release.yml - src = fetchFromGitHub { - owner = "Ryujinx"; - repo = "Ryujinx"; - rev = "5dbba07e33e83c9047dcbb701c9655edbbe89086"; + src = fetchzip { + url = "https://archive.org/download/ryujinx-5dbba-07e-33e-83c-9047dcbb-701c-9655edbbe-89086.tar/Ryujinx-5dbba07e33e83c9047dcbb701c9655edbbe89086.tar.gz"; hash = "sha256-UeJ3KE5e5H9crqroAxjmxYTf/Z4cbj41a6/1HW2nLcA="; };