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";
|
2022-01-02 09:08:44 +00:00
|
|
|
version = "14.0.0";
|
2019-11-07 14:32:49 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://www.unicode.org/Public/zipped/${version}/UCD.zip";
|
2022-01-02 09:08:44 +00:00
|
|
|
sha256 = "sha256-AzpSdrXXr4hEWJ+ONILzl3qDhecdEH03UFVGUXjCNgA=";
|
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;
|
|
|
|
};
|
|
|
|
}
|