2017-12-05 13:22:56 +00:00
|
|
|
{ fetchurl, stdenv, gnome3 }:
|
2018-07-14 14:51:42 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "unicode-data-${version}";
|
2019-03-08 00:07:36 +00:00
|
|
|
version = "12.0.0";
|
2017-09-28 01:27:11 +01:00
|
|
|
srcs = [
|
|
|
|
(fetchurl {
|
2018-07-14 14:51:42 +01:00
|
|
|
url = "http://www.unicode.org/Public/${version}/ucd/Blocks.txt";
|
2019-03-08 00:07:36 +00:00
|
|
|
sha256 = "041sk54v6rjzb23b9x7yjdwzdp2wc7gvfz7ybavgg4gbh51wm8x1";
|
2017-09-28 01:27:11 +01:00
|
|
|
})
|
|
|
|
(fetchurl {
|
2018-07-14 14:51:42 +01:00
|
|
|
url = "http://www.unicode.org/Public/${version}/ucd/DerivedAge.txt";
|
2019-03-08 00:07:36 +00:00
|
|
|
sha256 = "04j92xp07v273z3pxkbfmi1svmw9kmnjl9nvz9fv0g5ybk9zk7r6";
|
2017-09-28 01:27:11 +01:00
|
|
|
})
|
|
|
|
(fetchurl {
|
2018-07-14 14:51:42 +01:00
|
|
|
url = "http://www.unicode.org/Public/${version}/ucd/NamesList.txt";
|
2019-03-08 00:07:36 +00:00
|
|
|
sha256 = "0vsq8gx7hws8mvxy3nlglpwxw7ky57q0fs09d7w9xgb2ylk7fz61";
|
2017-09-28 01:27:11 +01:00
|
|
|
})
|
|
|
|
(fetchurl {
|
2018-07-14 14:51:42 +01:00
|
|
|
url = "http://www.unicode.org/Public/${version}/ucd/Scripts.txt";
|
2019-03-08 00:07:36 +00:00
|
|
|
sha256 = "18c63hx4y5yg408a8d0wx72d2hfnlz4l560y1fsf9lpzifxpqcmx";
|
2017-09-28 01:27:11 +01:00
|
|
|
})
|
|
|
|
(fetchurl {
|
2018-07-14 14:51:42 +01:00
|
|
|
url = "http://www.unicode.org/Public/${version}/ucd/UnicodeData.txt";
|
2019-03-08 00:07:36 +00:00
|
|
|
sha256 = "07d1kq190kgl92ispfx6zmdkvwvhjga0ishxsngzlw8j3kdkz4ap";
|
2017-09-28 01:27:11 +01:00
|
|
|
})
|
|
|
|
(fetchurl {
|
2018-07-14 14:51:42 +01:00
|
|
|
url = "http://www.unicode.org/Public/${version}/ucd/Unihan.zip";
|
2019-03-08 00:07:36 +00:00
|
|
|
sha256 = "1kfdhgg2gm52x3s07bijb5cxjy0jxwhd097k5lqhvzpznprm6ibf";
|
2017-09-28 01:27:11 +01:00
|
|
|
})
|
|
|
|
];
|
|
|
|
phases = "installPhase";
|
|
|
|
installPhase = with stdenv.lib; ''
|
|
|
|
mkdir $out
|
|
|
|
for f in $srcs;do
|
|
|
|
cp $f $out/$(stripHash $f)
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://www.unicode.org/ucd/;
|
|
|
|
description = "Unicode Character Database";
|
|
|
|
maintainers = gnome3.maintainers;
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|