unicode-character-database: init at 12.1.0

This commit is contained in:
Jan Tojnar 2019-11-07 15:32:49 +01:00
parent ed4ed5869a
commit 2d405f9078
No known key found for this signature in database
GPG key ID: 7FAB2A15F7A607A4
2 changed files with 40 additions and 0 deletions

View file

@ -0,0 +1,38 @@
{ stdenv
, fetchurl
, unzip
}:
stdenv.mkDerivation rec {
pname = "unicode-character-database";
version = "12.1.0";
src = fetchurl {
url = "https://www.unicode.org/Public/zipped/${version}/UCD.zip";
sha256 = "19m06iw0jl7lhlggcmghi12p6jld0qrmfpksgc243yn6sjh53fi5";
};
nativeBuildInputs = [
unzip
];
setSourceRoot = ''
sourceRoot=$PWD
'';
installPhase = ''
runHook preInstall
mkdir -p $out/share/unicode
cp -r * $out/share/unicode
runHook postInstall
'';
meta = with stdenv.lib; {
description = "Unicode Character Database";
homepage = "https://www.unicode.org/";
license = licenses.free; # https://www.unicode.org/license.html
platforms = platforms.all;
};
}

View file

@ -17737,6 +17737,8 @@ in
uni-vga = callPackage ../data/fonts/uni-vga { };
unicode-character-database = callPackage ../data/misc/unicode-character-database { };
unifont = callPackage ../data/fonts/unifont { };
unifont_upper = callPackage ../data/fonts/unifont_upper { };