From 40227110d8d0b4d49ff5f9dbd61f0803e0881af0 Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Tue, 31 Dec 2024 08:49:04 +0100 Subject: [PATCH] hspell: Add zlib 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 67f0a216e5c8cec5a1d1787c57dbf8b4fb56ccf9 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 --- pkgs/development/libraries/hspell/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/hspell/default.nix b/pkgs/development/libraries/hspell/default.nix index df8b97149d9c3e..42002b52ccfcac 100644 --- a/pkgs/development/libraries/hspell/default.nix +++ b/pkgs/development/libraries/hspell/default.nix @@ -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 @@ -41,7 +41,10 @@ stdenv.mkDerivation rec { perl zlib ]; - buildInputs = [ perl ]; + buildInputs = [ + perl + zlib + ]; strictDeps = true;