02cf88bb76
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
38 lines
691 B
Nix
38 lines
691 B
Nix
{ lib, stdenv
|
|
, fetchurl
|
|
, unzip
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "unihan-database";
|
|
version = "14.0.0";
|
|
|
|
src = fetchurl {
|
|
url = "https://www.unicode.org/Public/zipped/${version}/Unihan.zip";
|
|
hash = "sha256-KuRRmyuCzU0VN5wX5Xv7EsM8D1TaSXfeA7KwS88RhS0=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
unzip
|
|
];
|
|
|
|
setSourceRoot = ''
|
|
sourceRoot=$PWD
|
|
'';
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
mkdir -p $out/share/unicode
|
|
cp -r * $out/share/unicode
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Unicode Han Database";
|
|
homepage = "https://www.unicode.org/";
|
|
license = licenses.unicode-dfs-2016;
|
|
platforms = platforms.all;
|
|
};
|
|
}
|