2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv
|
2019-11-07 18:07:55 +01:00
|
|
|
, fetchurl
|
|
|
|
, unzip
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "unihan-database";
|
|
|
|
version = "12.1.0";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://www.unicode.org/Public/zipped/${version}/Unihan.zip";
|
|
|
|
sha256 = "1kfdhgg2gm52x3s07bijb5cxjy0jxwhd097k5lqhvzpznprm6ibf";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
unzip
|
|
|
|
];
|
|
|
|
|
|
|
|
setSourceRoot = ''
|
|
|
|
sourceRoot=$PWD
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
mkdir -p $out/share/unicode
|
|
|
|
cp -r * $out/share/unicode
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2019-11-07 18:07:55 +01:00
|
|
|
description = "Unicode Han Database";
|
|
|
|
homepage = "https://www.unicode.org/";
|
2020-03-27 22:15:03 +01:00
|
|
|
license = licenses.unicode-dfs-2016;
|
2019-11-07 18:07:55 +01:00
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|