push sheeet
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -0,0 +1,55 @@
{
lib,
stdenv,
fetchurl,
perl,
}:
let
version = "2.8.8";
folder =
with builtins;
let
parts = splitVersion version;
in
concatStringsSep "." [
(elemAt parts 0)
(elemAt parts 1)
];
in
stdenv.mkDerivation rec {
pname = "hyphen";
inherit version;
nativeBuildInputs = [ perl ];
src = fetchurl {
url = "https://sourceforge.net/projects/hunspell/files/Hyphen/${folder}/${pname}-${version}.tar.gz";
sha256 = "01ap9pr6zzzbp4ky0vy7i1983fwyqy27pl0ld55s30fdxka3ciih";
};
# Do not install the en_US dictionary.
installPhase = ''
runHook preInstall
make install-libLTLIBRARIES
make install-binSCRIPTS
make install-includeHEADERS
# license
install -D -m644 COPYING "$out/share/licenses/${pname}/LICENSE"
runHook postInstall
'';
meta = with lib; {
description = "Text hyphenation library";
mainProgram = "substrings.pl";
homepage = "https://sourceforge.net/projects/hunspell/files/Hyphen/";
platforms = platforms.all;
license = with licenses; [
gpl2
lgpl21
mpl11
];
maintainers = with maintainers; [ Br1ght0ne ];
};
}

View File

@@ -0,0 +1,118 @@
# hyphen dictionaries
{
hyphen,
stdenv,
lib,
fetchgit,
fetchurl,
}:
let
libreofficeRepository = "https://anongit.freedesktop.org/git/libreoffice/dictionaries.git";
libreofficeCommit = "9e27d044d98e65f89af8c86df722a77be827bdc8";
libreofficeSubdir = "de";
mkDictFromLibreofficeGit =
{
subdir,
shortName,
shortDescription,
dictFileName,
readmeFileName,
}:
stdenv.mkDerivation rec {
version = "24.8";
pname = "hyphen-dict-${shortName}-libreoffice";
src = fetchgit {
url = "https://anongit.freedesktop.org/git/libreoffice/dictionaries.git";
rev = "a2bf59878dd76685803ec260e15d875746ad6e25";
hash = "sha256-3CvjgNjsrm4obATK6LmtYob8i2ngTbwP6FB4HlJMPCE=";
};
meta = with lib; {
description = "Hyphen dictionary for ${shortDescription} from LibreOffice";
homepage = "https://wiki.documentfoundation.org/Development/Dictionaries";
license = with licenses; [ mpl20 ];
maintainers = with maintainers; [ theCapypara ];
platforms = platforms.all;
};
dontBuild = true;
installPhase = ''
runHook preInstall
cd $src/${subdir}
install -dm755 "$out/share/hyphen"
install -m644 "hyph_${dictFileName}.dic" "$out/share/hyphen"
# docs
install -dm755 "$out/share/doc/"
install -m644 "README_${readmeFileName}.txt" "$out/share/doc/${pname}.txt"
runHook postInstall
'';
};
in
rec {
# ENGLISH
en_US = en-us;
en-us = stdenv.mkDerivation {
nativeBuildInputs = hyphen.nativeBuildInputs;
version = hyphen.version;
pname = "hyphen-dict-en-us";
src = hyphen.src;
meta = {
inherit (hyphen.meta)
homepage
platforms
license
maintainers
;
description = "Hyphen dictionary for English (United States)";
};
installPhase = ''
runHook preInstall
make install-hyphDATA
runHook postInstall
'';
};
# GERMAN
de_DE = de-de;
de-de = mkDictFromLibreofficeGit {
subdir = "de";
shortName = "de-de";
shortDescription = "German (Germany)";
dictFileName = "de_DE";
readmeFileName = "hyph_de";
};
de_AT = de-at;
de-at = mkDictFromLibreofficeGit {
subdir = "de";
shortName = "de-at";
shortDescription = "German (Austria)";
dictFileName = "de_AT";
readmeFileName = "hyph_de";
};
de_CH = de-ch;
de-ch = mkDictFromLibreofficeGit {
subdir = "de";
shortName = "de-ch";
shortDescription = "German (Switzerland)";
dictFileName = "de_CH";
readmeFileName = "hyph_de";
};
# RUSSIAN
ru_RU = ru-ru;
ru-ru = mkDictFromLibreofficeGit {
subdir = "ru_RU";
shortName = "ru-ru";
shortDescription = "Russian (Russia)";
dictFileName = "ru_RU";
readmeFileName = "ru_RU";
};
}