From 71fb85952dbbcb5829a504acadeadbc049811bab Mon Sep 17 00:00:00 2001 From: Thiago Kenji Okada Date: Tue, 16 Nov 2021 16:45:43 -0300 Subject: [PATCH] libretro.citra: fix compilation --- pkgs/misc/emulators/retroarch/cores.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/pkgs/misc/emulators/retroarch/cores.nix b/pkgs/misc/emulators/retroarch/cores.nix index 9c723fb42e63..36e25d28e057 100644 --- a/pkgs/misc/emulators/retroarch/cores.nix +++ b/pkgs/misc/emulators/retroarch/cores.nix @@ -8,7 +8,6 @@ , cmake , curl , fetchFromGitHub -, fetchgit , fetchpatch , ffmpeg , fluidsynth @@ -264,7 +263,13 @@ with lib.licenses; citra = mkLibRetroCore rec { core = "citra"; - src = getCoreSrc core; + # `nix-prefetch-github` doesn't support `deepClone`, necessary for citra + # https://github.com/seppeljordan/nix-prefetch-github/issues/41 + src = fetchFromGitHub { + inherit (hashesFile.citra) owner repo rev fetchSubmodules; + deepClone = true; + sha256 = "sha256-bwnYkMvbtRF5bGZRYVtMWxnCu9P45qeX4+ntOj9eRds="; + }; description = "Port of Citra to libretro"; license = gpl2Plus; extraNativeBuildInputs = [ cmake pkg-config ];