Skip to content

Commit

Permalink
Merge pull request #79 from 5aaee9/main
Browse files Browse the repository at this point in the history
pve-edk2-firmware: fix upstream submodule broken
  • Loading branch information
JulienMalka authored Nov 19, 2024
2 parents 803e86e + d92be84 commit 3e943de
Showing 1 changed file with 23 additions and 3 deletions.
26 changes: 23 additions & 3 deletions pkgs/pve-edk2-firmware/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,31 @@ stdenv.mkDerivation rec {
pname = "pve-edk2-firmware";
version = "4.2023.08-4";

src = fetchgit {
src = fetchgit rec {
url = "git://git.proxmox.com/git/${pname}.git";
rev = "17443032f78eaf9ae276f8df9d10c64beec2e048";
sha256 = "sha256-19frOpnL8xLWIDw58u1zcICU9Qefp936LteyfnSIMCw=";
fetchSubmodules = true;
sha256 = "sha256-efDcC+kdCXDf64N+kNXDQIpsCiAUP2DyKmXZCpx5MAo=";

# FIXME: remove manual fetch submodule if submodule url fixed in next release
fetchSubmodules = false;
leaveDotGit = true;

postFetch = ''
cd $out
git remote add origin ${url}
git fetch
git branch --set-upstream-to=origin/master
git reset --hard ${rev}
sed -i "s#../mirror_edk2#git://git.proxmox.com/git/mirror_edk2.git#g" .gitmodules
git submodule sync
git submodule update --init --depth 1
ls -lah edk2
sed -i "s#github.com/Zeex/subhook#github.com/tianocore/edk2-subhook#g" edk2/.gitmodules
git submodule update --init --recursive
git clean -fxd
rm -rf .git/
'';
};

buildInputs = [ ];
Expand Down

0 comments on commit 3e943de

Please sign in to comment.