forgejo-lts: 7.0.10 -> 7.0.11
[NixPkgs.git] / pkgs / by-name / ja / jawiki-all-titles-in-ns0 / package.nix
blob5f64b12e5ab3b04943d194bb13d854c351e5cad2
2   lib,
3   fetchFromGitHub,
4   stdenvNoCC,
5   nix-update-script,
6 }:
8 stdenvNoCC.mkDerivation {
9   pname = "jawiki-all-titles-in-ns0";
10   version = "0-unstable-2024-10-01";
12   src = fetchFromGitHub {
13     owner = "musjj";
14     repo = "jawiki-archive";
15     rev = "1e26e5efa36eea5322f55b178a5c4d5a5439feb9";
16     hash = "sha256-8jzsECzrrcHeMvV2K89WagSiCXHjEDEfUwLDanVVuas=";
17   };
19   installPhase = ''
20     runHook preInstall
22     mkdir $out
23     cp jawiki-latest-all-titles-in-ns0.gz $out/jawiki-all-titles-in-ns0.gz
25     runHook postInstall
26   '';
28   passthru.updateScript = nix-update-script {
29     extraArgs = [
30       "--version"
31       "branch"
32     ];
33   };
35   meta = {
36     description = "A jawiki dump list of page titles in main namespace";
37     homepage = "https://dumps.wikimedia.org/backup-index.html";
38     license = with lib.licenses; [
39       fdl13Only
40       cc-by-sa-30
41     ];
42     maintainers = with lib.maintainers; [ pineapplehunter ];
43     platforms = lib.platforms.all;
44     # this does not need to be separately built
45     # it only provides a dump gz file
46     hydraPlatforms = [ ];
47   };