2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv
|
2019-11-07 15:32:49 +01:00
|
|
|
, fetchurl
|
|
|
|
, unzip
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "unicode-character-database";
|
2022-09-14 22:46:58 +02:00
|
|
|
version = "15.0.0";
|
2019-11-07 15:32:49 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://www.unicode.org/Public/zipped/${version}/UCD.zip";
|
2022-09-14 22:46:58 +02:00
|
|
|
sha256 = "sha256-X73kAPPmh9JcybCo0w12GedssvTD6Fup347BMSy2cYw=";
|
2019-11-07 15:32:49 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
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 15:32:49 +01:00
|
|
|
description = "Unicode Character Database";
|
|
|
|
homepage = "https://www.unicode.org/";
|
2020-03-27 22:15:03 +01:00
|
|
|
license = licenses.unicode-dfs-2016;
|
2019-11-07 15:32:49 +01:00
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|