summaryrefslogtreecommitdiff
path: root/trivionomicon/pkgs/athena-bccr/unwrapped.nix
diff options
context:
space:
mode:
Diffstat (limited to 'trivionomicon/pkgs/athena-bccr/unwrapped.nix')
-rw-r--r--trivionomicon/pkgs/athena-bccr/unwrapped.nix16
1 files changed, 14 insertions, 2 deletions
diff --git a/trivionomicon/pkgs/athena-bccr/unwrapped.nix b/trivionomicon/pkgs/athena-bccr/unwrapped.nix
index 3a70144..a2b7722 100644
--- a/trivionomicon/pkgs/athena-bccr/unwrapped.nix
+++ b/trivionomicon/pkgs/athena-bccr/unwrapped.nix
@@ -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;
};