1{ lib, stdenv
2, fetchurl
3, unzip
4}:
5
6stdenv.mkDerivation rec {
7 pname = "unicode-character-database";
8 version = "15.0.0";
9
10 src = fetchurl {
11 url = "https://www.unicode.org/Public/zipped/${version}/UCD.zip";
12 sha256 = "sha256-X73kAPPmh9JcybCo0w12GedssvTD6Fup347BMSy2cYw=";
13 };
14
15 nativeBuildInputs = [
16 unzip
17 ];
18
19 sourceRoot = ".";
20
21 installPhase = ''
22 runHook preInstall
23
24 mkdir -p $out/share/unicode
25 cp -r * $out/share/unicode
26
27 runHook postInstall
28 '';
29
30 meta = with lib; {
31 description = "Unicode Character Database";
32 homepage = "https://www.unicode.org/";
33 license = licenses.unicode-dfs-2016;
34 platforms = platforms.all;
35 };
36}