3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/text/kakasi/default.nix

36 lines
895 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, libiconv }:
stdenv.mkDerivation rec {
pname = "kakasi";
version = "2.3.6";
2021-01-15 09:19:50 +00:00
buildInputs = lib.optional stdenv.isDarwin [ libiconv ];
2018-06-17 04:53:19 +01:00
meta = with lib; {
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 04:53:19 +01:00
platforms = platforms.unix;
};
src = fetchurl {
url = "http://kakasi.namazu.org/stable/kakasi-${version}.tar.xz";
sha256 = "1qry3xqb83pjgxp3my8b1sy77z4f0893h73ldrvdaky70cdppr9f";
};
2018-08-08 22:43:53 +01:00
postPatch = ''
for a in tests/kakasi-* ; do
substituteInPlace $a \
--replace "/bin/echo" echo
done
'';
doCheck = false; # fails 1 of 6 tests
}