From 3445bb69eb45b8fa3e0236812da10c9f20114b69 Mon Sep 17 00:00:00 2001 From: Fernando Rodrigues Date: Fri, 14 Nov 2025 07:12:32 +1100 Subject: [PATCH] xen: switch to fetchFromGitHub Xenbits is protected with Anubis, and while currently fetching works, there is no reason to put the load on Xen's servers when a GitHub mirror is available. Signed-off-by: Fernando Rodrigues --- pkgs/by-name/xe/xen/package.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/xe/xen/package.nix b/pkgs/by-name/xe/xen/package.nix index e8645badd14d..4fbe5a050c04 100644 --- a/pkgs/by-name/xe/xen/package.nix +++ b/pkgs/by-name/xe/xen/package.nix @@ -2,7 +2,7 @@ lib, stdenv, testers, - fetchgit, + fetchFromGitHub, fetchpatch, replaceVars, @@ -241,9 +241,10 @@ stdenv.mkDerivation (finalAttrs: { "boot" ]; - src = fetchgit { - url = "https://xenbits.xenproject.org/git-http/xen.git"; - rev = "08f043965a7b1047aabd6d81da6b031465f2d797"; + src = fetchFromGitHub { + owner = "xen-project"; + repo = "xen"; + tag = "RELEASE-4.20.1"; hash = "sha256-a4dIJBY5aeznXPoI8nSipMgimmww7ejoQ1GE28Gq13o="; };