mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 16:03:23 +00:00
37 lines
664 B
Nix
37 lines
664 B
Nix
{ lib, stdenv
|
|
, fetchurl
|
|
, unzip
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "unihan-database";
|
|
version = "15.1.0";
|
|
|
|
src = fetchurl {
|
|
url = "https://www.unicode.org/Public/zipped/${version}/Unihan.zip";
|
|
hash = "sha256-oCJmEOMkvPeErDgOEfTL9TPuHms9AosJkb+MDcP4WFM=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
unzip
|
|
];
|
|
|
|
sourceRoot = ".";
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
mkdir -p $out/share/unicode
|
|
cp -r * $out/share/unicode
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Unicode Han Database";
|
|
homepage = "https://www.unicode.org/";
|
|
license = licenses.unicode-dfs-2016;
|
|
platforms = platforms.all;
|
|
};
|
|
}
|