2017-09-28 09:16:09 +02:00
|
|
|
{ stdenv, fetchFromGitHub, fetchurl, python3Packages }:
|
|
|
|
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
|
|
name = "unicode-${version}";
|
2018-11-15 17:22:38 +01:00
|
|
|
version = "2.6";
|
2017-09-28 09:16:09 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "garabik";
|
|
|
|
repo = "unicode";
|
|
|
|
rev = "v${version}";
|
2018-11-15 17:22:38 +01:00
|
|
|
sha256 = "17hh4nwl5njsh7lnff583j2axn6rfvfbiqwp72n7vcsgkiszw4kg";
|
2017-09-28 09:16:09 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
ucdtxt = fetchurl {
|
2017-10-04 11:21:41 +02:00
|
|
|
url = http://www.unicode.org/Public/10.0.0/ucd/UnicodeData.txt;
|
|
|
|
sha256 = "1cfak1j753zcrbgixwgppyxhm4w8vda8vxhqymi7n5ljfi6kwhjj";
|
2017-09-28 09:16:09 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
substituteInPlace "$out/bin/.unicode-wrapped" \
|
|
|
|
--replace "/usr/share/unicode/UnicodeData.txt" "$ucdtxt"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Display unicode character properties";
|
|
|
|
homepage = https://github.com/garabik/unicode;
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = [ maintainers.woffs ];
|
2017-10-08 18:53:28 +02:00
|
|
|
platforms = platforms.all;
|
2017-09-28 09:16:09 +02:00
|
|
|
};
|
|
|
|
}
|