49 lines
1.1 KiB
Nix
49 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
stdenvNoCC,
|
|
nix-update-script,
|
|
}:
|
|
|
|
stdenvNoCC.mkDerivation {
|
|
pname = "jawiki-all-titles-in-ns0";
|
|
version = "0-unstable-2025-08-01";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "musjj";
|
|
repo = "jawiki-archive";
|
|
rev = "25c2523e2845552101cc8815917619170238d197";
|
|
hash = "sha256-94qqYqh5KdWQZTVXl8GOXRUI6C0IG8THP9j2t4/8M8Y=";
|
|
};
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
mkdir $out
|
|
cp jawiki-latest-all-titles-in-ns0.gz $out/jawiki-all-titles-in-ns0.gz
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
passthru.updateScript = nix-update-script {
|
|
extraArgs = [
|
|
"--version"
|
|
"branch"
|
|
];
|
|
};
|
|
|
|
meta = {
|
|
description = "Jawiki dump list of page titles in main namespace";
|
|
homepage = "https://dumps.wikimedia.org/backup-index.html";
|
|
license = with lib.licenses; [
|
|
fdl13Only
|
|
cc-by-sa-30
|
|
];
|
|
maintainers = with lib.maintainers; [ pineapplehunter ];
|
|
platforms = lib.platforms.all;
|
|
# this does not need to be separately built
|
|
# it only provides a dump gz file
|
|
hydraPlatforms = [ ];
|
|
};
|
|
}
|