Skip to content

Commit

Permalink
hspell: Add zlib
Browse files Browse the repository at this point in the history
As mentioned by the configure script output, hspell will fall back
on using `gzip` program when not linked against `zlib`:

    No Zlib library, defaulting to using pipes

It has been removed in 67f0a21 for some reason.

I am getting the following in the journal from `geary` through `enchant`,
hopefully this fixes it:

    Hspell: can't run gzip -dc '/nix/store/14qk9r9ywvpqn0a24fvw1iwjv302d04j-hspell-1.4/share/hspell/hebrew.wgz.prefixes'.

Co-authored-by: Colin <[email protected]>
  • Loading branch information
jtojnar and uninsane committed Dec 31, 2024
1 parent 88195a9 commit 4022711
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pkgs/development/libraries/hspell/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ stdenv.mkDerivation rec {
patches = [ ./remove-shared-library-checks.patch ];
postPatch = "patchShebangs .";
preBuild = lib.optionalString (stdenv.hostPlatform != stdenv.buildPlatform) ''
make CC=${buildPackages.stdenv.cc}/bin/cc find_sizes
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
Expand All @@ -41,7 +41,10 @@ stdenv.mkDerivation rec {
perl
zlib
];
buildInputs = [ perl ];
buildInputs = [
perl
zlib
];

strictDeps = true;

Expand Down

0 comments on commit 4022711

Please sign in to comment.