trivionomicon: athena-bccr: add support for mirrors

This commit is contained in:
Alejandro Soto 2026-03-09 15:25:05 -06:00
parent 789b1780cb
commit 286c49e369
5 changed files with 41 additions and 5 deletions

View file

@ -1,5 +1,7 @@
{
fetchurl,
lib,
mirror ? null,
requireFile,
release,
gaudiHash ? null,
@ -7,10 +9,20 @@
}: let
inherit (release) srcPaths vendor;
src = requireFile {
url = "https://soportefirmadigital.com";
url =
if mirror != null
then "${mirror}/${release.filename}"
else "https://soportefirmadigital.com";
fetchSrc =
if mirror != null
then fetchurl
else requireFile;
src = fetchSrc {
name = release.filename;
inherit url;
inherit (release) hash;
};