2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv
|
2019-11-07 14:32:49 +00:00
|
|
|
, fetchurl
|
|
|
|
, unzip
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "unicode-character-database";
|
2020-03-16 11:10:22 +00:00
|
|
|
version = "13.0.0";
|
2019-11-07 14:32:49 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://www.unicode.org/Public/zipped/${version}/UCD.zip";
|
2020-03-16 11:10:22 +00:00
|
|
|
sha256 = "0ld97ppkb5f8d5b3mlkxfwnr6f3inijyqias9xc4bbin9lxrfxig";
|
2019-11-07 14:32:49 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
unzip
|
|
|
|
];
|
|
|
|
|
|
|
|
setSourceRoot = ''
|
|
|
|
sourceRoot=$PWD
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
mkdir -p $out/share/unicode
|
|
|
|
cp -r * $out/share/unicode
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-11-07 14:32:49 +00:00
|
|
|
description = "Unicode Character Database";
|
|
|
|
homepage = "https://www.unicode.org/";
|
2020-03-27 21:15:03 +00:00
|
|
|
license = licenses.unicode-dfs-2016;
|
2019-11-07 14:32:49 +00:00
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|