zim packages: add a bunch more

the khanacademy one is taking ages to download...
This commit is contained in:
2025-01-22 10:50:36 +00:00
parent e8ef317468
commit 83477b9e70
15 changed files with 94 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
{ mkVersionedHttpZim }: mkVersionedHttpZim {
owner = "other";
pname = "alpinelinux_en_all_maxi";
version = "2023-01";
hash = "sha256-zNShZOPEF3iBnP2Fdmr+Dpu8mjMf+5FJl1f3px5+nPs=";
}

View File

@@ -0,0 +1,6 @@
{ mkVersionedHttpZim }: mkVersionedHttpZim {
owner = "other";
pname = "archlinux_en_all_maxi";
version = "2022-12";
hash = "sha256-Bj8AocoWTgDyjVlUSfDvNCMg6vKzOyJTFgY6qmRL7AY=";
}

View File

@@ -0,0 +1,6 @@
{ mkVersionedHttpZim }: mkVersionedHttpZim {
owner = "other";
pname = "bitcoin_en_all_maxi";
version = "2021-03";
hash = "sha256-W+GVrWfZ1bS+zKjPDnVeAM8t6XLMPIfF7qntT9jO5+8=";
}

View File

@@ -0,0 +1,6 @@
{ mkVersionedHttpZim }: mkVersionedHttpZim {
owner = "devdocs";
pname = "devdocs_en_nix";
version = "2025-01";
hash = "sha256-njenhXV+6fu6LPZXaqfWLipCcF89m0CZPqzVIxJXWTU=";
}

View File

@@ -0,0 +1,6 @@
{ mkVersionedHttpZim }: mkVersionedHttpZim {
owner = "other";
pname = "gentoo_en_all_maxi";
version = "2021-03";
hash = "sha256-8AuVOKt19LsmcEuVfo97csp+TbUCXE+6V/tJHzPc9AI=";
}

View File

@@ -0,0 +1,5 @@
{ mkVersionedHttpZim }: mkVersionedHttpZim {
owner = "other";
pname = "khanacademy_en_all";
version = "2023-03";
}

View File

@@ -24,6 +24,7 @@ stdenv.mkDerivation (finalAttrs: {
"https://download.kiwix.org/zim/${prefix}${tail}" "https://download.kiwix.org/zim/${prefix}${tail}"
"https://dumps.wikimedia.org/other/kiwix/zim/${prefix}${tail}" "https://dumps.wikimedia.org/other/kiwix/zim/${prefix}${tail}"
"https://mirror.accum.se/mirror/wikimedia.org/other/kiwix/zim/${prefix}${tail}" "https://mirror.accum.se/mirror/wikimedia.org/other/kiwix/zim/${prefix}${tail}"
"https://mirror.download.kiwix.org/zim/.hidden/${prefix}${tail}"
]; ];
inherit hash; inherit hash;
}; };

View File

@@ -0,0 +1,6 @@
{ mkVersionedHttpZim }: mkVersionedHttpZim {
owner = "other";
pname = "openstreetmap-wiki_en_all_maxi";
version = "2023-05";
hash = "sha256-Wi1+33ZGvpMfOwMJqp9yFdvJrCFcSQBBxYhQfra13bI=";
}

View File

@@ -6,6 +6,7 @@
# - https://mirror.accum.se/mirror/wikimedia.org/other/kiwix/zim # - https://mirror.accum.se/mirror/wikimedia.org/other/kiwix/zim
# - https://dumps.wikimedia.org/other/kiwix/zim # - https://dumps.wikimedia.org/other/kiwix/zim
# - https://download.kiwix.org/zim # - https://download.kiwix.org/zim
# - https://mirror.download.kiwix.org/zim/.hidden/
{ {
lib, lib,
newScope, newScope,
@@ -13,7 +14,20 @@
lib.recurseIntoAttrs (lib.makeScope newScope (self: with self; { lib.recurseIntoAttrs (lib.makeScope newScope (self: with self; {
mkVersionedHttpZim = callPackage ./mkVersionedHttpZim.nix { }; mkVersionedHttpZim = callPackage ./mkVersionedHttpZim.nix { };
alpinelinux_en_all_maxi = callPackage ./alpinelinux_en_all_maxi.nix { };
archlinux_en_all_maxi = callPackage ./archlinux_en_all_maxi.nix { };
bitcoin_en_all_maxi = callPackage ./bitcoin_en_all_maxi.nix { };
devdocs_en_nix = callPackage ./devdocs_en_nix.nix { };
gentoo_en_all_maxi = callPackage ./gentoo_en_all_maxi.nix { };
khanacademy_en_all = callPackage ./khanacademy_en_all.nix { };
openstreetmap-wiki_en_all_maxi = callPackage ./openstreetmap-wiki_en_all_maxi.nix { };
psychonautwiki_en_all_maxi = callPackage ./psychonautwiki_en_all_maxi.nix { };
rationalwiki_en_all_maxi = callPackage ./rationalwiki_en_all_maxi.nix { };
wikipedia_en_100 = callPackage ./wikipedia_en_100.nix { }; wikipedia_en_100 = callPackage ./wikipedia_en_100.nix { };
wikipedia_en_all_maxi = callPackage ./wikipedia_en_all_maxi.nix { }; wikipedia_en_all_maxi = callPackage ./wikipedia_en_all_maxi.nix { };
wikipedia_en_all_mini = callPackage ./wikipedia_en_all_mini.nix { }; wikipedia_en_all_mini = callPackage ./wikipedia_en_all_mini.nix { };
zimgit-food-preparation_en = callPackage ./zimgit-food-preparation_en.nix { };
zimgit-medicine_en = callPackage ./zimgit-medicine_en.nix { };
zimgit-post-disaster_en = callPackage ./zimgit-post-disaster_en.nix { };
zimgit-water_en = callPackage ./zimgit-water_en.nix { };
})) }))

View File

@@ -0,0 +1,8 @@
# TODO: switch to non-dev once official package is published
# - <https://github.com/openzim/zim-requests/issues/634>
{ mkVersionedHttpZim }: mkVersionedHttpZim {
owner = "dev";
pname = "psychonautwiki_en_all_maxi";
version = "2024-12";
hash = "sha256-1CfR/7QeAbzEnWwueoeUOukw05IYTimDPIaiTddUV4k=";
}

View File

@@ -0,0 +1,6 @@
{ mkVersionedHttpZim }: mkVersionedHttpZim {
owner = "other";
pname = "rationalwiki_en_all_maxi";
version = "2021-03";
hash = "sha256-dVULy9qBvUWx6Okx4eF+4wKUb4KuiNoTLAOTo39a/G4=";
}

View File

@@ -0,0 +1,6 @@
{ mkVersionedHttpZim }: mkVersionedHttpZim {
owner = "other";
pname = "zimgit-food-preparation_en";
version = "2024-08";
hash = "sha256-nGuBmmj+KnRWQq1DqbTh/nnYl28jmr2ErjjUwtJg7RQ=";
}

View File

@@ -0,0 +1,6 @@
{ mkVersionedHttpZim }: mkVersionedHttpZim {
owner = "other";
pname = "zimgit-medicine_en";
version = "2024-08";
hash = "sha256-qGwxuT6YAKrizYEu8Yy/nAh6dTd4TGL7wlnbf5+dGMA=";
}

View File

@@ -0,0 +1,6 @@
{ mkVersionedHttpZim }: mkVersionedHttpZim {
owner = "other";
pname = "zimgit-post-disaster_en";
version = "2024-05";
hash = "sha256-C6m7NYt2i5TrDXkgdS/jVr8JfeUU7mGEPzpNpszhdPg=";
}

View File

@@ -0,0 +1,6 @@
{ mkVersionedHttpZim }: mkVersionedHttpZim {
owner = "other";
pname = "zimgit-water_en";
version = "2024-08";
hash = "sha256-OSx7yXCkT93WHdF/bqvx9OIZNvLVwnyDCT4dxHXLVrY=";
}