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,57 @@
{
lib,
stdenv,
fetchurl,
perl,
zlib,
buildPackages,
}:
stdenv.mkDerivation rec {
name = "${passthru.pname}-${passthru.version}";
passthru = {
pname = "hspell";
version = "1.4";
};
PERL_USE_UNSAFE_INC = "1";
src = fetchurl {
url = "${meta.homepage}${name}.tar.gz";
hash = "sha256-cxD11YdA0h1tIVwReWWGAu99qXqBa8FJfIdkvpeqvqM=";
};
patches = [ ./remove-shared-library-checks.patch ];
postPatch = "patchShebangs .";
preBuild = lib.optionalString (stdenv.hostPlatform != stdenv.buildPlatform) ''
make CC='${buildPackages.stdenv.cc}/bin/cc -I${lib.getDev buildPackages.zlib}/include -L${buildPackages.zlib}/lib' find_sizes
mv find_sizes find_sizes_build
make clean
substituteInPlace Makefile --replace "./find_sizes" "./find_sizes_build"
substituteInPlace Makefile --replace "ar cr" "${lib.getBin stdenv.cc.bintools.bintools}/bin/${stdenv.cc.targetPrefix}ar cr"
substituteInPlace Makefile --replace "ranlib" "${lib.getBin stdenv.cc.bintools.bintools}/bin/${stdenv.cc.targetPrefix}ranlib"
substituteInPlace Makefile --replace "STRIP=strip" "STRIP=${lib.getBin stdenv.cc.bintools.bintools}/bin/${stdenv.cc.targetPrefix}strip"
'';
postInstall = ''
patchShebangs --update $out/bin/multispell
'';
nativeBuildInputs = [
perl
zlib
];
buildInputs = [
perl
zlib
];
strictDeps = true;
meta = with lib; {
description = "Hebrew spell checker";
homepage = "http://hspell.ivrix.org.il/";
platforms = platforms.all;
license = licenses.gpl2;
};
}

View File

@@ -0,0 +1,58 @@
{
lib,
stdenv,
hspell,
}:
let
dict =
variant: a:
stdenv.mkDerivation (
{
inherit (hspell)
version
src
patches
postPatch
nativeBuildInputs
;
buildFlags = [ variant ];
meta =
hspell.meta
// {
broken = true;
description = "${variant} Hebrew dictionary";
}
// (lib.optionalAttrs (a ? meta) a.meta);
}
// (removeAttrs a [ "meta" ])
);
in
{
recurseForDerivations = true;
aspell = dict "aspell" {
pname = "aspell-dict-he";
installPhase = ''
mkdir -p $out/lib/aspell
cp -v he_affix.dat he.wl $out/lib/aspell'';
};
myspell = dict "myspell" {
pname = "myspell-dict-he";
installPhase = ''
mkdir -p $out/lib/myspell
cp -v he.dic he.aff $out/lib/myspell'';
};
hunspell = dict "hunspell" {
pname = "hunspell-dict-he";
installPhase = ''
mkdir -p $out/lib
cp -rv hunspell $out/lib'';
};
}

View File

@@ -0,0 +1,12 @@
--- a/Makefile.in 2017-06-22 22:32:50.000000000 +0100
+++ a/Makefile.in.patched 2024-01-20 21:41:59.135013186 +0000
@@ -142,9 +142,6 @@
test -d $(DESTDIR)$(INCLUDEDIR) || mkdir -m 755 -p $(DESTDIR)$(INCLUDEDIR)
cp hspell.h linginfo.h $(DESTDIR)$(INCLUDEDIR)/
chmod 644 $(DESTDIR)$(INCLUDEDIR)/hspell.h $(DESTDIR)$(INCLUDEDIR)/linginfo.h
- test -f libhspell.so.0 && cp libhspell.so.0 $(DESTDIR)$(LIBDIR)/
- test -f libhspell.so.0 && chmod 755 $(DESTDIR)$(LIBDIR)/libhspell.so.0
- test -f libhspell.so.0 && ln -sf libhspell.so.0 $(DESTDIR)$(LIBDIR)/libhspell.so
################################################