2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchurl, libiconv }:
|
2014-04-18 16:07:17 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "kakasi-2.3.6";
|
|
|
|
|
2021-01-15 10:19:50 +01:00
|
|
|
buildInputs = lib.optional stdenv.isDarwin [ libiconv ];
|
2018-06-17 05:53:19 +02:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2014-04-18 16:07:17 +02:00
|
|
|
description = "Kanji Kana Simple Inverter";
|
|
|
|
longDescription = ''
|
|
|
|
KAKASI is the language processing filter to convert Kanji
|
|
|
|
characters to Hiragana, Katakana or Romaji and may be
|
|
|
|
helpful to read Japanese documents.
|
|
|
|
'';
|
|
|
|
homepage = "http://kakasi.namazu.org/";
|
|
|
|
license = licenses.gpl2Plus;
|
2018-06-17 05:53:19 +02:00
|
|
|
platforms = platforms.unix;
|
2014-04-18 16:07:17 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://kakasi.namazu.org/stable/${name}.tar.xz";
|
|
|
|
sha256 = "1qry3xqb83pjgxp3my8b1sy77z4f0893h73ldrvdaky70cdppr9f";
|
|
|
|
};
|
2018-08-08 23:43:53 +02:00
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
for a in tests/kakasi-* ; do
|
|
|
|
substituteInPlace $a \
|
|
|
|
--replace "/bin/echo" echo
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
|
|
|
doCheck = false; # fails 1 of 6 tests
|
|
|
|
|
2014-04-18 16:07:17 +02:00
|
|
|
}
|