2022-06-22 19:45:29 +01:00
|
|
|
{ lib, stdenv, fetchurl, fetchpatch }:
|
2015-02-20 21:14:26 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-06-09 05:44:13 +01:00
|
|
|
pname = "nkf";
|
|
|
|
version = "2.1.5";
|
2015-02-20 21:14:26 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-06-09 05:44:13 +01:00
|
|
|
url = "mirror://osdn/nkf/70406/${pname}-${version}.tar.gz";
|
|
|
|
sha256 = "0i5dbcb9aipwr8ym4mhvgf1in3frl6y8h8x96cprz9s7b11xz9yi";
|
2015-02-20 21:14:26 +00:00
|
|
|
};
|
|
|
|
|
2022-06-22 19:45:29 +01:00
|
|
|
patches = [
|
|
|
|
# Pull upstream fix for parllel build failures
|
|
|
|
(fetchpatch {
|
|
|
|
name = "parallel-install.patch";
|
|
|
|
url = "http://git.osdn.net/view?p=nkf/nkf.git;a=patch;h=9ccff5975bec7963e591e042e1ab1139252a4dc9";
|
|
|
|
sha256 = "00f0x414gfch650b20w0yj5x2bd67hchmadl7v54lk3vdgkc6jwj";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2019-06-09 05:44:13 +01:00
|
|
|
makeFlags = [ "prefix=$(out)" ];
|
2015-02-20 21:14:26 +00:00
|
|
|
|
|
|
|
meta = {
|
2015-02-21 21:35:01 +00:00
|
|
|
description = "Tool for converting encoding of Japanese text";
|
2019-06-09 05:44:13 +01:00
|
|
|
homepage = "https://nkf.osdn.jp/";
|
2021-01-15 09:19:50 +00:00
|
|
|
license = lib.licenses.zlib;
|
|
|
|
platforms = lib.platforms.unix;
|
|
|
|
maintainers = [ lib.maintainers.auntie ];
|
2015-02-20 21:14:26 +00:00
|
|
|
};
|
|
|
|
}
|