From db2c89f3e1f88593ddbcdd163e3f82513015bc06 Mon Sep 17 00:00:00 2001 From: Martin Joerg Date: Thu, 7 Nov 2024 10:24:20 +0000 Subject: [PATCH] edk2: fix subhook submodule URL The URL of the subhook submodule has changed, as the original repository is no longer available. https://github.com/tianocore/edk2/issues/6398 fixes #353769 --- pkgs/development/compilers/edk2/default.nix | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/pkgs/development/compilers/edk2/default.nix b/pkgs/development/compilers/edk2/default.nix index cd15f29e370c9..466c5c7aafba9 100644 --- a/pkgs/development/compilers/edk2/default.nix +++ b/pkgs/development/compilers/edk2/default.nix @@ -48,13 +48,20 @@ edk2 = stdenv.mkDerivation rec { }) ]; - srcWithVendoring = fetchFromGitHub { + srcWithVendoring = (fetchFromGitHub { owner = "tianocore"; repo = "edk2"; rev = "edk2-stable${edk2.version}"; fetchSubmodules = true; hash = "sha256-Nurm6QNKCyV6wvbj0ELdYAL7mbZ0yg/tTwnEJ+N18ng="; - }; + }).overrideAttrs + (_: { + env = { + GIT_CONFIG_COUNT = 1; + GIT_CONFIG_KEY_0 = "url.https://github.com/tianocore/edk2-subhook.git.insteadOf"; + GIT_CONFIG_VALUE_0 = "https://github.com/Zeex/subhook.git"; + }; + }); # We don't want EDK2 to keep track of OpenSSL, # they're frankly bad at it.