flake.nix: pull datasources from datasources repo
Build and test / build (push) Failing after 8m19s

This commit is contained in:
2026-04-07 17:24:59 +09:00
parent eebeaba0e0
commit 9b9c771eff
6 changed files with 30 additions and 214 deletions
-46
View File
@@ -1,46 +0,0 @@
{
stdenvNoCC,
jmdict-src,
jmdict-with-examples-src,
xmlformat,
gzip,
edrdgMetadata,
}:
stdenvNoCC.mkDerivation {
name = "jmdict";
dontUnpack = true;
srcs = [
jmdict-src
jmdict-with-examples-src
];
nativeBuildInputs = [
gzip
xmlformat
];
buildPhase = ''
runHook preBuild
gzip -dkc "${jmdict-src}" > JMdict.xml
gzip -dkc "${jmdict-with-examples-src}" > JMdict_with_examples.xml
xmlformat -i JMdict.xml
xmlformat -i JMdict_with_examples.xml
runHook postBuild
'';
installPhase = ''
runHook preInstall
install -Dt "$out" JMdict.xml JMdict_with_examples.xml
runHook postInstall
'';
meta = edrdgMetadata // {
description = "A Japanese-Multilingual Dictionary providing lexical data for japanese words";
homepage = "https://www.edrdg.org/jmdict/j_jmdict.html";
};
}
-40
View File
@@ -1,40 +0,0 @@
{
stdenvNoCC,
kanjidic2-src,
xmlformat,
gzip,
edrdgMetadata,
}:
stdenvNoCC.mkDerivation {
name = "kanjidic2";
src = kanjidic2-src;
dontUnpack = true;
nativeBuildInputs = [
gzip
xmlformat
];
buildPhase = ''
runHook preBuild
gzip -dkc "${kanjidic2-src}" > kanjidic2.xml
xmlformat -i kanjidic2.xml
runHook postBuild
'';
installPhase = ''
runHook preInstall
install -Dt "$out" kanjidic2.xml
runHook postInstall
'';
meta = edrdgMetadata // {
description = "A consolidated XML-format kanji database";
homepage = "https://www.edrdg.org/kanjidic/kanjd2index_legacy.html";
};
}
-40
View File
@@ -1,40 +0,0 @@
{
stdenv,
radkfile-src,
gzip,
iconv,
edrdgMetadata,
}:
stdenv.mkDerivation {
name = "radkfile";
src = radkfile-src;
dontUnpack = true;
nativeBuildInputs = [
gzip
iconv
];
buildPhase = ''
runHook preBuild
gzip -dkc "$src" > radkfile
iconv -f EUC-JP -t UTF-8 -o radkfile_utf8 radkfile
runHook postBuild
'';
installPhase = ''
runHook preInstall
install -Dt "$out" radkfile_utf8
runHook postInstall
'';
meta = edrdgMetadata // {
description = "A file providing searchable decompositions of kanji characters";
homepage = "https://www.edrdg.org/krad/kradinf.html";
};
}