katawa-shoujo: Fetch from archive.org

Download speed has been unbearable since the migration to fhs.sh and their CDN. Go via archive.org instead.

Upstream CDN is 30 kB/s for me, 300 kB/s for someone else I asked. archive.org lets me pull at more than 300 kB/s, sometimes up to 1 or 2 MB/s. Not lightning-fast either, but better.
This commit is contained in:
OPNA2608 2024-10-02 16:02:43 +02:00
parent 98e5db847a
commit 6476f11bc6

View File

@ -31,11 +31,13 @@ let
stdenv = stdenvNoCC;
srcDetails = rec {
x86_64-linux = {
archiveDate = "20240825224413";
urlSuffix = "%5blinux-x86%5d%5b18161880%5d.tar.bz2";
hash = "sha256-7FoFz88dWYHs2/pxkEwnmiFeeb3+slayrWknEJoAB9o=";
};
i686-linux = x86_64-linux;
x86_64-darwin = {
archiveDate = "20240825224411";
urlSuffix = "%5bmac%5d%5b1DFC84A6%5d.dmg";
hash = "sha256-Sc5BAlpJsffjcNrZ8+VU3n7G10DoqDKQn/leHDW32Y8=";
};
@ -46,7 +48,7 @@ stdenv.mkDerivation rec {
version = "1.3.1";
src = fetchurl {
url = "https://cdn.fhs.sh/ks/bin/gold_${version}/%5b4ls%5d_katawa_shoujo_${version}-${srcDetails.urlSuffix}";
url = "https://web.archive.org/web/${srcDetails.archiveDate}/https://cdn.fhs.sh/ks/bin/gold_${version}/%5b4ls%5d_katawa_shoujo_${version}-${srcDetails.urlSuffix}";
inherit (srcDetails) hash;
};