From 609330138ef5865c258795e4e3c970f2ab669bac Mon Sep 17 00:00:00 2001 From: Adam Dinwoodie Date: Mon, 25 Nov 2024 11:17:45 +0000 Subject: [PATCH] cups-kyocera-3500-4500: reorder source URLs List the URL that is least likely to silently change its target first, to avoid future builds breaking because the vendor released a new package using the same URL. --- pkgs/by-name/cu/cups-kyocera-3500-4500/package.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/cu/cups-kyocera-3500-4500/package.nix b/pkgs/by-name/cu/cups-kyocera-3500-4500/package.nix index d02c7b63913b..690437256547 100644 --- a/pkgs/by-name/cu/cups-kyocera-3500-4500/package.nix +++ b/pkgs/by-name/cu/cups-kyocera-3500-4500/package.nix @@ -27,9 +27,13 @@ stdenv.mkDerivation rec { # 1. Go to https://www.kyoceradocumentsolutions.us/en/support/downloads.html # 2. Search for printer model, e.g. "TASKalfa 6053ci" # 3. Locate e.g. "Linux Print Driver (9.3)" in the list + # + # Where there's no version encoded in the vendor URL, prefer a + # web.archive.org URL. That means that if the vendor updates the package + # at this URL, the package won't suddenly stop building. urls = [ - "https://www.kyoceradocumentsolutions.us/content/download-center-americas/us/drivers/drivers/MA_PA_4500ci_Linux_gz.download.gz" "https://web.archive.org/web/20241123173620/https://www.kyoceradocumentsolutions.us/content/download-center-americas/us/drivers/drivers/MA_PA_4500ci_Linux_gz.download.gz" + "https://www.kyoceradocumentsolutions.us/content/download-center-americas/us/drivers/drivers/MA_PA_4500ci_Linux_gz.download.gz" ]; hash = "sha256-pqBtfKiQo/+cF8fG5vsEQvr8UdxjGsSShXI+6bun03c="; recursiveHash = true;