2020-09-02 15:36:38 +01:00
|
|
|
{ stdenv, fetchurl, perl, zlib, buildPackages }:
|
2010-10-17 19:44:00 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "${passthru.pname}-${passthru.version}";
|
|
|
|
|
|
|
|
passthru = {
|
|
|
|
pname = "hspell";
|
|
|
|
version = "1.1";
|
|
|
|
};
|
|
|
|
|
2018-10-03 20:25:44 +01:00
|
|
|
PERL_USE_UNSAFE_INC = "1";
|
2018-07-12 08:16:48 +01:00
|
|
|
|
2010-10-17 19:44:00 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "${meta.homepage}${name}.tar.gz";
|
|
|
|
sha256 = "08x7rigq5pa1pfpl30qp353hbdkpadr1zc49slpczhsn0sg36pd6";
|
|
|
|
};
|
|
|
|
|
2015-01-08 09:26:49 +00:00
|
|
|
patchPhase = ''patchShebangs .'';
|
2020-09-02 15:36:38 +01:00
|
|
|
preBuild = stdenv.lib.optionalString (stdenv.hostPlatform != stdenv.buildPlatform) ''
|
|
|
|
make CC=${buildPackages.stdenv.cc}/bin/cc find_sizes
|
|
|
|
mv find_sizes find_sizes_build
|
|
|
|
make clean
|
|
|
|
|
|
|
|
substituteInPlace Makefile --replace "./find_sizes" "./find_sizes_build"
|
|
|
|
substituteInPlace Makefile --replace "ar cr" "${stdenv.lib.getBin stdenv.cc.bintools.bintools}/bin/${stdenv.cc.targetPrefix}ar cr"
|
|
|
|
substituteInPlace Makefile --replace "ranlib" "${stdenv.lib.getBin stdenv.cc.bintools.bintools}/bin/${stdenv.cc.targetPrefix}ranlib"
|
|
|
|
substituteInPlace Makefile --replace "STRIP=strip" "STRIP=${stdenv.lib.getBin stdenv.cc.bintools.bintools}/bin/${stdenv.cc.targetPrefix}strip"
|
|
|
|
'';
|
|
|
|
nativeBuildInputs = [ perl zlib ];
|
|
|
|
# buildInputs = [ zlib ];
|
2010-10-17 19:44:00 +01:00
|
|
|
|
2018-10-12 22:24:30 +01:00
|
|
|
meta = with stdenv.lib; {
|
2010-10-17 19:44:00 +01:00
|
|
|
description = "Hebrew spell checker";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://hspell.ivrix.org.il/";
|
2018-10-12 22:24:30 +01:00
|
|
|
platforms = platforms.all;
|
|
|
|
license = licenses.gpl2;
|
2010-10-17 19:44:00 +01:00
|
|
|
};
|
|
|
|
}
|