jawiki-all-titles-in-ns0: init at 0-unstable-2024-09-11

This commit is contained in:
Shogo Takata 2024-05-24 19:06:12 +09:00
parent 633055a2bd
commit 392ec6ad7a
No known key found for this signature in database
GPG Key ID: 4BB7EF28F88F6E7A

View File

@ -0,0 +1,48 @@
{
lib,
fetchFromGitHub,
stdenvNoCC,
nix-update-script,
}:
stdenvNoCC.mkDerivation {
pname = "jawiki-all-titles-in-ns0";
version = "0-unstable-2024-09-11";
src = fetchFromGitHub {
owner = "musjj";
repo = "jawiki-archive";
rev = "d205f63665e351ea853edc72157f14daa22a227f";
hash = "sha256-Jj2vH8UMhgSzWv+RnOipnVNSdeOF6jttcLN/kVYa4D4=";
};
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 = "A 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 = [ ];
};
}