10 stdenv.mkDerivation rec {
11 name = "${passthru.pname}-${passthru.version}";
18 PERL_USE_UNSAFE_INC = "1";
21 url = "${meta.homepage}${name}.tar.gz";
22 hash = "sha256-cxD11YdA0h1tIVwReWWGAu99qXqBa8FJfIdkvpeqvqM=";
25 patches = [ ./remove-shared-library-checks.patch ];
26 postPatch = "patchShebangs .";
27 preBuild = lib.optionalString (stdenv.hostPlatform != stdenv.buildPlatform) ''
28 make CC='${buildPackages.stdenv.cc}/bin/cc -I${lib.getDev buildPackages.zlib}/include -L${buildPackages.zlib}/lib' find_sizes
29 mv find_sizes find_sizes_build
32 substituteInPlace Makefile --replace "./find_sizes" "./find_sizes_build"
33 substituteInPlace Makefile --replace "ar cr" "${lib.getBin stdenv.cc.bintools.bintools}/bin/${stdenv.cc.targetPrefix}ar cr"
34 substituteInPlace Makefile --replace "ranlib" "${lib.getBin stdenv.cc.bintools.bintools}/bin/${stdenv.cc.targetPrefix}ranlib"
35 substituteInPlace Makefile --replace "STRIP=strip" "STRIP=${lib.getBin stdenv.cc.bintools.bintools}/bin/${stdenv.cc.targetPrefix}strip"
38 patchShebangs --update $out/bin/multispell
52 description = "Hebrew spell checker";
53 homepage = "http://hspell.ivrix.org.il/";
54 platforms = platforms.all;
55 license = licenses.gpl2;