39 lines
730 B
Nix
39 lines
730 B
Nix
{
|
|
lib,
|
|
stdenvNoCC,
|
|
fetchurl,
|
|
unzip,
|
|
}:
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
pname = "unicode-character-database";
|
|
version = "16.0.0";
|
|
|
|
src = fetchurl {
|
|
url = "https://www.unicode.org/Public/zipped/${version}/UCD.zip";
|
|
sha256 = "sha256-yG3YHysUpDsMwGSqX4mqckE4aAHjXFnHmE5XmDJjTrI=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
unzip
|
|
];
|
|
|
|
sourceRoot = ".";
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
mkdir -p $out/share/unicode
|
|
cp -r * $out/share/unicode
|
|
rm $out/share/unicode/env-vars
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Unicode Character Database";
|
|
homepage = "https://www.unicode.org/";
|
|
license = licenses.unicode-dfs-2016;
|
|
platforms = platforms.all;
|
|
};
|
|
}
|